Bcrypt

Hash and compare text string using bcrypt. Bcrypt is a password-hashing function based on the Blowfish cipher.

About Bcrypt

bcrypt is a password-hashing function built on the Blowfish cipher. Unlike a plain hash, it is deliberately slow and adds a random salt, which makes stolen password databases far harder to crack. This tool creates a bcrypt hash and checks whether a text matches an existing one.

When you would use it

How to use it

  1. In the hash section, enter the text and set the salt rounds (the cost factor, default 10).
  2. Copy the generated hash; it starts with $2 followed by the cost and the salt.
  3. In the compare section, enter a text and a hash and read whether they match.

Things worth knowing

Frequently asked questions

Why is my hash different from the one in the database?
That is expected. The salt is random and stored inside the hash, so the same password produces a different string each time. Verify with the compare section, which reads the salt back out of the hash.
What cost factor should I choose?
Pick the highest value that keeps a single hash at roughly 100 to 300 ms on your production hardware, and revisit it every few years as computers get faster.

All the tools