NaaB Tools Fast. Private. Browser-native.
GitHub

AES Encrypt / Decrypt

Authenticated AES-256-GCM encryption via the Web Crypto API with PBKDF2 (600,000 rounds). Output is Base64 containing a v1 header + Salt (16 B) + IV (12 B) + ciphertext + auth tag — Salt and IV are also shown separately below for inspection. Legacy (header-less) payloads still decrypt. Keep the passphrase safe; there is no recovery.

Passphrase

Encrypt mode takes plaintext; decrypt mode takes Base64/Base64URL ciphertext produced by this tool. Max 1 MB UTF-8. Passphrase 8+ chars recommended, 1024 max.

Output
Output will appear here.

Frequently Asked Questions

How do I encrypt?

Choose Encrypt mode, enter a passphrase, type or paste the plaintext and click Execute Operation — then copy the Base64 output, which already embeds salt, IV and iteration count.

Is a short passphrase acceptable?

Under 8 characters triggers a warning in Encrypt mode — use a long, high-entropy passphrase for real protection.

How do I decrypt?

Choose Decrypt mode, paste a payload, enter the same passphrase and click Execute Operation. A wrong passphrase fails authentication with an explicit error.

Why did decryption fail if I am sure about the data?

AES-GCM is authenticated: any wrong passphrase or any modified byte fails loudly instead of returning garbage. Double-check both.

What happens if I lose my passphrase?

Recovery is impossible by design — store it somewhere safe before encrypting anything important.

Can I share the ciphertext publicly?

Yes — salt, IV and iteration count are public by design. Only the passphrase must stay secret.

What is the v1 header?

New outputs carry a version header with the PBKDF2 iteration count so parameters can evolve; header-less legacy payloads still decrypt.

Copied!