🗝️

PBKDF2 Key Derivation Tool

Software · 5 inputs · Free

🗝️

PBKDF2 Key Derivation Tool

5 inputs

Parameters

What is this tool?

PBKDF2 Key Derivation Tool helps developers with encoding, encryption and text processing. Derives a key from a password and salt with PBKDF2 (RFC 8018), returns it as hex and Base64, and reminds you of the minimum iteration count OWASP recommends for the chosen hash (SHA-256: 600,000, SHA-512: 210,000, SHA-1: 1,300,000). Everything runs in your browser and the password and salt are never sent anywhere; both are read as UTF-8 text. For storing user passwords, a dedicated password hashing scheme such as Argon2id or bcrypt on the server is preferable.

📘 Common mistakes · Worked example
PasswordSaltIterationsKey length (bytes)Hash function

Derives a key from a password and salt with PBKDF2 (RFC 8018), returns it as hex and Base64, and reminds you of the minimum iteration count OWASP recommends for the chosen hash (SHA-256: 600,000, SHA-512: 210,000, SHA-1: 1,300,000). Everything runs in your browser and the password and salt are never sent anywhere; both are read as UTF-8 text. For storing user passwords, a dedicated password hashing scheme such as Argon2id or bcrypt on the server is preferable.

The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.

Last reviewed: · Methodology and sources

How is it calculated?

Derives a key from a password and salt with PBKDF2 (RFC 8018), returns it as hex and Base64, and reminds you of the minimum iteration count OWASP recommends for the chosen hash (SHA-256: 600,000, SHA-512: 210,000, SHA-1: 1,300,000). Everything runs in your browser and the password and salt are never sent anywhere; both are read as UTF-8 text. For storing user passwords, a dedicated password hashing scheme such as Argon2id or bcrypt on the server is preferable.

Inputs

ValueUnitExample
Password—password
Salt—salt
Iterations—600000
Key lengthbytes32
Hash function—HMAC-SHA-256

What is this tool?

PBKDF2 Key Derivation Tool helps developers with encoding, encryption and text processing. Derives a key from a password and salt with PBKDF2 (RFC 8018), returns it as hex and Base64, and reminds you of the minimum iteration count OWASP recommends for the chosen hash (SHA-256: 600,000, SHA-512: 210,000, SHA-1: 1,300,000). Everything runs in your browser and the password and salt are never sent anywhere; both are read as UTF-8 text. For storing user passwords, a dedicated password hashing scheme such as Argon2id or bcrypt on the server is preferable.

Common mistakes

  • Using the same salt for every user, or no salt at all. A salt must be random and unique per record (RFC 8018 recommends at least 8 bytes; 16 bytes is common in practice) and is stored in the clear next to the derived value.
  • Asking for a key longer than the hash output. With SHA-256 and 64 bytes the defender computes two blocks, while an attacker testing a password only needs the first 32 bytes: your workload doubles and security does not improve. If you need a longer key, choose SHA-512 or expand the output with HKDF.
  • Sticking with the 1,000 or 10,000 iterations found in old tutorials. Those values were chosen for hardware of years ago; store the iteration count with each record so that you can raise it later.
  • Assuming the salt is decoded from hex or Base64. This tool reads the salt as plain text; if another library turns the same salt into raw bytes first, the results will not match.
  • Ignoring the character encoding of the password. The tool uses UTF-8; a password containing letters such as é or ü gives a completely different key when encoded as UTF-16 or Windows-1252. Unicode normalisation (composed versus decomposed forms) changes the result as well.
  • Comparing derived values with ==. Use a constant-time comparison when verifying a password: crypto.timingSafeEqual in Node.js, hmac.compare_digest in Python, hash_equals in PHP.
  • Using PBKDF2 to stretch a key that already has high entropy. If the input is already a random key there is nothing to slow down; HKDF is designed for that job.

📘 PBKDF2 Explained: How It Works, Iteration Counts, Salt and Key Length →

Sources

Key terms

PasswordSaltIterationsKey length (bytes)Hash function

Frequently Asked Questions

+PBKDF2 Key Derivation Tool — how is it calculated?

Derives a key from a password and salt with PBKDF2 (RFC 8018), returns it as hex and Base64, and reminds you of the minimum iteration count OWASP recommends for the chosen hash (SHA-256: 600,000, SHA-512: 210,000, SHA-1: 1,300,000). Everything runs in your browser and the password and salt are never sent anywhere; both are read as UTF-8 text. For storing user passwords, a dedicated password hashing scheme such as Argon2id or bcrypt on the server is preferable.

+Which values are required?

Password, Salt, Iterations, Key length (bytes), Hash function.

+Is my data stored?

No. All calculations run in your browser; the values you enter are never sent to or stored on a server. If you press “Save”, the calculation stays only in your own browser and you can delete it at any time.

+Is it free?

Yes, all tools are free and require no sign-up.

Similar tools

Popular Tools

🧮

Free Calculators in One Place

Tax, finance, health, math and more — 500+ tools, all in one place.

Choose your cookie preference to continue

Records the site needs to work (theme, language, favourites) stay in your browser.

This site is free and funded by ads.

With your consent, Google Analytics cookies measure visits and Google AdSense cookies are used to show ads; the data is processed on Google servers abroad.

If you reject, the site works just the same.

Cookie Policy · KVKK notice