Free Online Password Hash Generator for bcrypt and PBKDF2
Hash a password with bcrypt or with PBKDF2, with the cost, the salt and the iteration count all in your hands, and check a password against a hash you already have. The time each hash takes is measured and shown, because a work factor is only meaningful as a number of milliseconds on real hardware.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Use Password Hash Generator
Step by step, start to finish.
It is hashed in the page. Nothing is uploaded, and nothing is kept once the tab is closed.
bcrypt with a cost between 4 and 15, or PBKDF2 with an iteration count of your own. The cost is the whole of the protection, so it is the setting worth thinking about.
A work factor is only meaningful as a duration. The page times every hash and says whether that duration is in the right range for a login.
Switch to checking, paste the stored hash, and the page tells you whether the password matches it. The salt and cost come out of the hash itself.
Key Features
What this tool does, and what it does not do.
bcrypt from a vendored library, PBKDF2 from the browser own Web Crypto.
Every hash is timed, with a plain judgement about whether that duration is sensible.
Paste a bcrypt or Django style PBKDF2 string and see whether a password matches it.
From the browser cryptographic random source, with the option to pin one for a test.
The salt and the raw digest separately, as well as the single string you store.
Not offered, with the reason stated, rather than quietly left out.
About Password Hash Generator
Storing a password means storing something that proves a later guess was right without being the password itself. A hash does that, but an ordinary hash does it badly: SHA-256 was designed to be fast, and fast is precisely wrong here, because the attacker with your database runs the same function billions of times a second on a graphics card. The answer is a function built to be slow and to have its slowness turned up over the years as hardware gets better, which is what bcrypt, PBKDF2, scrypt and Argon2 all are.
This page offers bcrypt and PBKDF2 because both can run honestly in a browser. bcrypt comes from a vendored library, the long standing JavaScript implementation, and PBKDF2 comes from the browser own Web Crypto, the same code it uses for TLS. Both are given with the cost, the salt and the iteration count in your hands rather than hidden, because those parameters are the entire difference between a hash that protects a leaked database and one that does not.
The feature worth the most here is the timer. A cost of 10 or 600,000 iterations is a number with no meaning until it becomes a duration, and the duration depends on the machine. Seeing that one hash took 60 milliseconds here, and that the usual target on a server is 100 to 250, turns an abstract setting into a decision you can actually make. The same timer is why raising bcrypt cost by one and watching the time double teaches the idea faster than any explanation.
What the page does not do is pretend to be the right place for production work. It will not produce an Argon2 hash, for reasons set out above, and a hash made in a browser tab belongs in a test fixture or a seed file rather than in a live user table. Checking an existing hash is the exception: that is a genuinely useful thing to do here, because the salt and the cost travel inside the string and nothing else is needed.
Frequently Asked Questions
Common questions about this tool.