Skip to tool content
Toolioz logoToolioz
Cryptographic Security

Bcrypt Generator & Verifier

bcrypt stores a password as a salted hash with a cost factor. This page creates that hash and checks a password against an existing hash in the browser.

Generate Hash

Salt Rounds10
The slider runs from 4 to 14 and starts at 10. bcryptjs writes a $2b$ hash. A higher factor makes each hash slower.

Verify Hash Match

Enter hash and string above to test verification.

About Bcrypt Password Hash Generator & Checker

bcrypt stores a password as a salted hash with a cost factor. This page creates that hash and checks a password against an existing hash in the browser.

How to Use

  • 1Generate reads the text and the cost factor, then calls bcryptjs hashSync. The slider runs from 4 to 14 and starts at 10. The hash starts with $2b$.
  • 2Check pastes a hash and calls compareSync. The salt and prefix come from that hash, so a $2a$ hash can still be checked.
  • 3A match means compareSync returned true. A higher cost factor makes that call slower.
  • 4The hash can be copied. The page does not write it to a database.

Key Benefits

  • Hashing and checking run in the page with bcryptjs. The password is not uploaded.
  • The result is the boolean from compareSync.
  • bcryptjs writes a $2b$ prefix. compareSync can still check a pasted $2a$ hash.