bcrypt check password(password a, hash b)

The function checks a password against a given bcrpyt hash value. If the check is successful, the function returns true, otherwise false.

Parameter Description

Parameter

Description

a

The password to be checked.

b

The hashed password the check is performed against. Note: See function bcrypt hash password(password a, [salt b]).

Examples

Parameter a

Parameter b

Result

mypassword

$2a$10$oZE/GfU/Qm0LfCuTor81peGE.MSsJZdR7Ni4YZv3VLb3l4h3UeWsa

true