-
Notifications
You must be signed in to change notification settings - Fork 1
bcrypt_verify
bork edited this page Apr 14, 2019
·
1 revision
-
bcrypt_verify(password[], hash[])
- password - The player's entered password.
- hash - What was hashed by bcrypt_hash.
-
Example:
-
new retval, dest[100]; retval = bcrypt_hash("NathanStinks", BCRYPT_COST, dest); printf("[BCRYPT] Password: NathanStinks | Hash: %s | Retval: %d", dest, retval); retval = bcrypt_verify("NathanStinks", dest); printf("[BCRYPT VERIFY] Password: NathanStinks | Hash: %s | Retval: %d", dest, retval);
-