bcrypt check password()
The function checks a password against a given bcrpyt hash value. If the check is successful, the function returns true, otherwise false.
Parameters
Parameter |
Description |
a |
The password to be checked. |
b |
The hashed password the check is performed against. Note: See function bcrypt hash password(). |
Examples
Parameter a |
Parameter b |
Result |
mypassword |
$2a$10$oZE/GfU/Qm0LfCuTor81peGE.MSsJZdR7Ni4YZv3VLb3l4h3UeWsa |
true |