Skip to content

bcrypt

Hash a password with bcrypt at the cost you choose, and verify a password against an existing bcrypt hash, in your browser.

Hash a password

bcrypt reads at most the first 72 bytes of a password.

Each step doubles the time. 10 or more is the usual advice.

Verify a password

About this tool

bcrypt is a password hash from 1999 based on the Blowfish cipher. Its cost factor sets how many rounds it runs, each step doubling the work, so it can be made slower as hardware gets faster. It is still widely used in web frameworks.

Hash a password at a cost from 4 to 15 to get a standard $2b$ string, or paste an existing bcrypt hash to check whether a password matches it.

Questions

What cost should I use?
At least 10. Pick the highest cost that keeps a login under a few hundred milliseconds on your server. The slider shows how the time grows on your device.
What do $2a$, $2b$ and $2y$ mean?
They are revisions of the format that fixed bugs in some implementations. $2b$ is the current one, and for normal passwords all three produce the same hash.
Is my input sent to a server?
No. The page loads a compiled Dart engine into a Web Worker and does all the work in your browser tab. Nothing you type or drop in is uploaded, and the tools keep working offline once the page has loaded.

More tools