PBKDF2 Hash Generator
Derive a key from a password and salt with PBKDF2, using SHA-256, SHA-384, SHA-512 or SHA-1 and your chosen iteration count. The calculation runs in your browser and nothing is sent anywhere.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the PBKDF2 Hash Generator
- Enter the password and the salt.
- Set the iteration count. Higher values are slower to compute and harder to guess.
- Choose the hash function and the key length in bytes, then read the derived key in hex.
Frequently asked questions
What is PBKDF2?
PBKDF2 (Password-Based Key Derivation Function 2) is defined in RFC 8018. It runs an HMAC pseudorandom function over the password and salt many times and outputs a key of the length you ask for.
What number of iterations should I use?
It depends on the hash and your hardware. OWASP password storage guidance (2023) suggests at least 600,000 iterations for PBKDF2-HMAC-SHA256. Check current guidance before choosing a value.
What is the salt for?
The salt is a random value, usually at least 16 bytes, stored alongside the derived key. It makes each hash unique, so identical passwords do not produce the same output and precomputed lookup tables are useless.
Is PBKDF2 the same as a plain hash?
No. A plain hash such as SHA-256 is computed once. PBKDF2 repeats the hash many times with a salt, which slows down brute-force guessing of passwords.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.