Botan

Bcrypt Password Hashing

License
Botan is released under the Simplified BSD License (see LICENSE.md)

string  generateBcrypt(in string password, RandomNumberGenerator rng, ushort work_factor = 10);

Create a password hash using Bcrypt

Parameters
string password the password
RandomNumberGenerator rng a random number generator
ushort work_factor how much work to do to slow down guessing attacks

@see http://www.usenix.org/events/usenix99/provos/provos_html/

bool  checkBcrypt(in string password, in string hash);

Check a previously created password hash

Parameters
string password the password to check against
string hash the stored hash to check against