silverstripe/sapphire — pull request #527 by camspiers (2012-06-14 03:22:29+00:00)
Title: Added ability to set the cost of the blowfish crypt algorithm.

Previously the cost param was protected (still is) but there were no setters and getters.

I have enforced the crypt requirements on the cost string used in the salt of crypt. Specifically, two digit from 04-31.

Updated unit tests for blowfish algorithm to use the salt generation function and to test the newly implemented cost setting and getting functionality.