Name Description Size
info.txt 227
passhash9.cpp 3884
passhash9.h Create a password hash using PBKDF2 Functions much like generate_bcrypt(). The last parameter, @p alg_id, specifies which PRF to use. Currently defined values are: - 0: HMAC(SHA-1) - 1: HMAC(SHA-256) - 2: CMAC(Blowfish) - 3: HMAC(SHA-384) - 4: HMAC(SHA-512) The @p work_factor must be greater than zero and less than 512. This performs 10000 * @p work_factor PBKDF2 iterations, using 96 bits of salt taken from @p rng. Using work factor of 10 or more is recommended. @param password the password @param rng a random number generator @param work_factor how much work to do to slow down guessing attacks @param alg_id specifies which PRF to use with PBKDF2 0 is HMAC(SHA-1) 1 is HMAC(SHA-256) 2 is CMAC(Blowfish) 3 is HMAC(SHA-384) 4 is HMAC(SHA-512) all other values are currently undefined 1904