generateBcrypt

Create a password hash using Bcrypt

static if(BOTAN_HAS_BCRYPT && BOTAN_HAS_BLOWFISH)
string
generateBcrypt
(
in string password
,,
ushort work_factor = 10
)

Parameters

password string

the password

rng RandomNumberGenerator

a random number generator

work_factor ushort

how much work to do to slow down guessing attacks

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

Meta