Passhash9 Password Hashing
Create a password hash using PBKDF2
string pass | the password |
RandomNumberGenerator rng | a random number generator |
ushort work_factor | how much work to do to slow down guessing attacks |
ubyte 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 |
Check a previously created password hash
string password | the password to check against |
string hash | the stored hash to check against |