Personal security

AES-GCM Encrypt / Decrypt

Runs locally

Use AES-GCM Encrypt / Decrypt

What it does

Encrypt text with AES-256-GCM and a passphrase, or decrypt a Base64 string made by this tool. The key is a single SHA-256 hash of the passphrase, so use a long random one.

It runs entirely in your browser: nothing you enter is uploaded.

How to use AES-GCM Encrypt / Decrypt

  1. Enter a passphrase. Type a long, random passphrase in Password / Key. The field also accepts an empty value, which protects nothing.
  2. Paste the text. Put the text to encrypt, or a Base64 string made by this tool, into Plaintext / Ciphertext.
  3. Encrypt or decrypt. Press Encrypt to get a Base64 string, or Decrypt to turn such a string back into text.
  4. Copy and share safely. Press Copy and send the Base64 through one channel. Share the passphrase through another, for example in person or by phone.
  5. Fix a failed decryption. If Decrypt shows Error: wrong key or invalid data, check the passphrase letter by letter and make sure the whole Base64 string was copied.

Example

Short message

Input
Meet at the usual place at 10:00.
Output (captured 2026-10-20)
sc/i5ncy6JbuW/+WPWQo6pboxhwf1K3tR7fOW49jHPXbZOVhlKrJEXqGkWJ31PqgI7moKwETaLovN0/tlA==

Encrypt returns Base64 of a random 12-byte IV, the ciphertext and the 16-byte tag, different on every run. Type a passphrase in Password / Key first: the tool also accepts an empty one, which protects nothing.

What it checks

SignalWhat it means
KeySHA-256 of the passphrase, used as an AES-256 key. There is no salt and no slow derivation, so the same passphrase always gives the same key.
First 16 Base64 charactersThe 12-byte IV. Encrypt draws a new random IV each time, so the same text gives a different output on every run.
Output length12-byte IV, then the text bytes, then a 16-byte tag, all in Base64. An empty text gives 40 characters; a 23-byte text gives 68.
Error: wrong key or invalid dataThe passphrase differs (case and spaces count), the string was changed or cut, or it is not Base64. GCM returns no text when the check fails.
No format headerThe output carries no version or algorithm marker and no associated data, so other software needs this exact layout and key derivation to read it.
Base64 inputDecrypt expects standard Base64 as produced by Encrypt. Spaces and line breaks added by a mail program are ignored, but a missing or changed character makes decryption fail.
Empty passphrase acceptedThe key is then SHA-256 of an empty string, which anyone can compute, so the text is effectively not encrypted.

More examples

Decrypt a sample

Input
Password / Key: example passphrase, not a real secret; Ciphertext: AAAAAAAAAAAAAAAAmdUgeZatb2KYwe2btQ+qgA3xKNnswXrrQ6AeKTDSu03TnrvNXygf
Result

Decrypt shows Hello from PhishDestroy. The sample was made with an all-zero IV, the leading AAAAAAAAAAAAAAAA, for illustration only; Encrypt always uses a random IV.

One letter of the passphrase changed

Input
The same ciphertext with Password / Key: Example passphrase, not a real secret
Result

Error: wrong key or invalid data

Encrypt an empty text

Input
Plaintext / Ciphertext empty, any passphrase, Encrypt
Result

A 40-character Base64 string (12-byte IV plus 16-byte tag), different on every press.

FAQ

How is the key made from my passphrase?

The AES-256 key is one SHA-256 hash of the passphrase, with no salt and no slow key derivation such as PBKDF2 or Argon2. A short or guessable passphrase can therefore be brute-forced quickly offline, so use a long random one, for example from Passphrase Generator.

What is in the output, and can other software decrypt it?

Base64 of a random 12-byte IV, then the ciphertext and the 16-byte GCM authentication tag. Decryption shows Error: wrong key or invalid data if the passphrase is wrong or any byte changed, and other software can decrypt it only with the same SHA-256 key and byte layout.

Is my text or passphrase sent anywhere?

No. Encryption runs in your browser with the Web Crypto API; the passphrase and the text are never uploaded or stored.

Should I encrypt my seed phrase here?

No. Never type a wallet seed phrase into a website, and a key made from one unsalted SHA-256 hash lets a weak passphrase be brute-forced offline. Keep seed phrases offline, for example on paper or metal, or in a hardware wallet.

Can other software decrypt the output?

Yes, if it follows the same layout: key = SHA-256 of the passphrase as UTF-8, IV = first 12 bytes, tag = last 16 bytes, no associated data. Python's cryptography package and other AES-GCM libraries can do this.

Can I reuse one passphrase for many messages?

Each message gets a new random 12-byte IV, so reuse does not repeat the IV in practice. The real risk is the passphrase itself: anyone who learns it can read every message made with it.

What does GCM add over plain AES?

An authentication tag. Any change to the IV, the ciphertext or the tag is detected, and decryption fails instead of returning altered text.

Terms explained

PhishDestroy research