Derive a key
PBKDF2 via the Web Crypto API. Needs a secure context (HTTPS or localhost).
The derived key appears below in your chosen encoding.
Derive cryptographic keys from passwords with PBKDF2 using your browser's Web Crypto API. Choose the PRF, iteration count, salt and output length.
PBKDF2 via the Web Crypto API. Needs a secure context (HTTPS or localhost).
The derived key appears below in your chosen encoding.
PBKDF2 (RFC 8018) applies a pseudorandom function, usually HMAC-SHA-256, to the password and salt, then iterates that thousands of times, XORing the results. The iteration count is the work factor: each guess by an attacker must repeat the full chain. A unique random salt per password stops rainbow tables.
OWASP currently recommends 600,000 iterations for PBKDF2-HMAC-SHA-256 (210,000 for SHA-512) for password storage. Higher is better, but balance against login latency; this page lets you experiment. For new designs, consider Argon2id or scrypt, which add memory hardness that PBKDF2 lacks.