PBKDF2 Hash Generator
PBKDF2 (RFC 8018) is a password-based KDF that HMAC-stretches a password with a salt and an iteration count. FIPS programmes and older platforms still require it. OWASP accepts PBKDF2 when Argon2 is unavailable, but only at a high iteration count. Do not use a few thousand rounds on a modern GPU-era threat model.
Storing passwords in your own app? Check new ones the way NIST asks, in the browser and on your server: add the password field SDK.
What the PBKDF2 generator is for
PBKDF2 is the key-derivation function many older standards still name: HMAC repeated tens or hundreds of thousands of times. It is slower than a single SHA-256, which is the point — each password guess costs work.
New password stores should prefer Argon2id. Use this page to match a legacy system, to audit an iteration count, or to derive a key you will feed into AES.
Common uses
- Checking how long 210,000 iterations take on a given laptop
- Reproducing a derived key during a migration
- Teaching why a unique salt per secret is mandatory
What the output means in the real world
The derived key or encoded hash includes the salt and the iteration count if you used a modular format. Store all of those parameters. Verification must use the same hash (SHA-256 or SHA-512), salt, and rounds. Never email the derived key. If you used this to mint an encryption key from a password, treat the password as the long-term secret and the derived bytes as a key: rotate both if either leaked.
How this fits into real work
OWASP's Password Storage Cheat Sheet lists PBKDF2-HMAC-SHA256 with a large iteration count (hundreds of thousands and rising) as a fallback. If your library default is 1,000, that is a 2000s default. Raise it until derivation takes hundreds of milliseconds.
WPA2-PSK uses PBKDF2-HMAC-SHA1 with 4,096 iterations on the SSID as salt. That is why a short Wi-Fi passphrase still falls to offline capture. It is not a model for storing website passwords.
Migrating off PBKDF2: verify on login, write Argon2id, drop the PBKDF2 row. Dual-stack forever leaves the weaker hashes sitting in the dump.
How to use this tool
- Enter the password and a unique salt. Never reuse a salt across users.
- Set iterations. OWASP has raised recommended counts over time; 210,000 HMAC-SHA-256 is a current ballpark, not a forever number.
- Choose SHA-256 or SHA-512 and an output length. Derive, then copy the hex.
Tips
- If derivation is instant, the iteration count is too low for a password.
- This is not a password hash string with a built-in salt format like bcrypt. You must store the salt yourself.
Privacy & how it works
Everything happens inside your browser. The values you type are held in page memory only, are never sent to a server, and disappear when you close the tab. You can confirm this in your browser's network tab: the only request a tool makes is one that names the tool for a usage count, with nothing you typed in it. The tools also work with the internet disconnected.
Frequently asked questions
- Should I use this instead of bcrypt?
- Only if you must interoperate with a system that already uses PBKDF2. For a green-field store, Argon2id or bcrypt is the better default.
Browse other tools
All tools run entirely in your browser — nothing you type is sent to a server, except the optional HIBP 5-character hash prefix.