Skip to content

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);
Clone this wiki locally