-
Notifications
You must be signed in to change notification settings - Fork 1
argon2_verify
bork edited this page Apr 14, 2019
·
1 revision
-
argon2_verify(password[], salt[], hashed_value[], memcost = 3000, timecost = 2, lanes = 4)
- password - The password to be hashed. (Must be 1 char at minimum)
- salt - A little sprinkle of salt to be added to the password. (Must be 8 chars at minimum)
- hashed_value - The value hashed previously.
- memcost - Memory allocated towards hashing.
- timecost - Time allocated towards hashing.
- lanes - Amount of lanes to use. This is also the amount of threads to use while hashing.
- hashlength - Max length of your password hash.
-
Example
-
retval = argon2_hash("UCoolBro", "NaClNaClNaCl", dest); printf("[ARGON2] Password: UCoolBro | Salt: NaClNaClNaCl | Hash: %s | Retval: %d", dest, retval); retval = argon2_verify("UCoolBro", "NaClNaClNaCl", dest); printf("[ARGON2 VERIFY] Password: UCoolBro | Salt: NaClNaClNaCl | Hash: %s | Retval: %d ", dest, retval);
-