Password-Based Encryption (PBKDF2 + AES-GCM)

Encrypt and decrypt text with a password using PBKDF2 key derivation and AES-256-GCM. Everything happens in your browser with Web Crypto — the key is derived locally and never leaves your device.

Operation

How it works

About Password-Based Encryption

Password-based encryption converts a human-memorable secret into a strong symmetric key. The iteration count slows down brute-force attacks: 100000 PBKDF2 rounds means each guess costs a measurable amount of CPU, so weak passphrases are much harder to crack than with a single hash round. Higher is stronger but slower — on modern hardware 100000–600000 rounds is a reasonable range for interactive use.

Two warnings: first, the iteration count is deliberately not stored in the payload, so you must remember the same value you used to encrypt. Second, GCM requires a unique IV per encryption — this tool generates a fresh random IV every time, so encrypting the same message twice gives different ciphertexts. Store the full v1: payload; losing the salt or IV makes the data unrecoverable even with the correct password.