PBKDF2
Derive a key from a password with PBKDF2. SHA-256 by default, SHA-1 available.
Added 2026-10-24
What it does
PBKDF2 derives a key from a password with HMAC-SHA-256, or with HMAC-SHA-1 when you need to match older CryptoJS output. You set the salt and the iteration count. One iteration only reproduces a test vector. Password storage needs a large count, because a small count can be guessed. The same password, salt, and count produce different keys under SHA-1 and SHA-256. The salt is taken as text. A generated salt is hex characters, not bytes decoded from that hex. The password and salt are not uploaded. The derived key is not applied to AES unless you copy it into the AES tool yourself.
How to use it
- Enter the password, salt, and iteration count.
- SHA-256 is the default. Choose SHA-1 to match older CryptoJS output.
- The salt is text. A generated salt is hex characters, not decoded hex.
Common mistakes
- One iteration is not a password hash. Password storage needs a large iteration count. One iteration is only for reproducing a test vector.
- SHA-1 and SHA-256 do not match. The same password, salt, and count produce different keys under the two hashes.
The password and salt are not uploaded.
Related guides
- AES modes, and why DES is old
ECB repeats equal blocks. DES has a 56-bit key and is for old ciphertext. PBKDF2 stretches a password before AES.