AES-GCM Encrypt/Decrypt
Encrypt and decrypt text with AES-GCM using a passphrase (PBES2 with PBKDF2-SHA256) or a raw 128/256-bit key. Input and output are JWE (RFC 7516), so other JOSE libraries can read them.
Encryption and decryption run in your browser with the Web Crypto API. Passphrases, keys, and text are never sent anywhere or included in share links.
Used when encrypting; decryption reads the count from the data. OWASP recommends at least 600,000. Allowed: 1,000 to 10,000,000.
Enter a passphrase or key.
Enter a passphrase or key.
Output format
The output is a JWE in compact form (RFC 7516): five Base64URL fields joined with dots. Other JOSE libraries can decrypt it, and this tool can decrypt JWEs from them. Plaintext is encoded as UTF-8.
- Passphrase
- alg PBES2-HS256+A128KW, enc A256GCM; the salt (p2s) and iteration count (p2c) are in the header. Some libraries cap the iteration count when decrypting (jose: 10,000 by default), so raise the cap (maxPBES2Count in jose) to decrypt with them.
- Raw key
- alg dir, enc A128GCM or A256GCM (by key length)