--- title: "bcrypt check password()" slug: "basic-b-crypt-check-password" updated: 2026-08-10T08:41:06Z published: 2026-08-10T08:41:06Z canonical: "docs.lobstersoftware.com/basic-b-crypt-check-password" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # 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()](/v1/docs/en/basic-b-crypt-hash-password)*.* | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | mypassword | $2a$10$oZE/GfU/Qm0LfCuTor81peGE.MSsJZdR7Ni4YZv3VLb3l4h3UeWsa | true |