Method Nettle.bcrypt_verify()


Method bcrypt_verify

int bcrypt_verify(string(8bit) password, string(7bit) hashedpassword)

Description

Low level implementation of the bcrypt password-verifying algorithm.

Parameter password

The cleartext password. Only accepts 8-bit strings.

Parameter hashedpassword

This is the full hashed password string.

Returns

Returns 1 if the cleartext password matches the hashed password and zero otherwise.

Note

You should normally use Crypto.Password instead.

See also

Crypto.Password, Crypto.BLOWFISH