Bcrypt Hash Generator & Verifier
Generate bcrypt hashes and check passwords against them, with cost timing and a breakdown of the hash.
Recommended: 10 to 12. each step doubles the time.
Bcrypt Hash Generator & Verifier FAQ
How do I verify a bcrypt hash?
Choose Verify password, type the password, paste the hash (it starts with $2a$, $2b$ or $2y$ and is 60 characters long) and click Verify. You will see whether the password matches.
What cost factor should I use for bcrypt?
Use 10 to 12 for web logins. Pick the highest cost your server can handle at about a quarter of a second per login. The tool shows the time for each cost on this device, and each step up doubles it.
Why does the same password give a different bcrypt hash?
Each hash includes a new random 22-character salt, so two hashes of one password never match as text. Bcrypt checks a password by hashing it again with the salt stored in the hash.
What is the difference between $2a$, $2b$ and $2y$?
They are versions of the same algorithm. $2b$ is the current one; $2a$ is older and $2y$ comes from PHP. For normal passwords they give the same result, and this tool verifies all three.
Is it safe to enter real passwords here?
Hashing and checking happen in your browser and nothing is sent or saved. Still, avoid pasting production passwords and hashes into any web page if your security policy forbids it.