What is AES encryption and when to use it?
AES is the most popular cipher in the world. WhatsApp, BitLocker, FileVault, 7zip archives, TLS sessions, all sit on top of AES. Here you encrypt text with a password and get a sealed blob you can send to a friend, store in the cloud, or paste into a database. Without the password, no one reads it.
We use AES-GCM. The encryption key is derived from your password using PBKDF2 with 100,000 iterations.
Everything runs in your browser. Password, plaintext, ciphertext, not a single byte leaves your device. Open DevTools and check the Network tab, zero requests.
How to use
- Pick the mode at the top: Encrypt (text into ciphertext) or Decrypt (ciphertext back into text).
- Paste or type your text into the middle field. Could be anything, an API key, a note, a Wi-Fi password.
- Enter a password. This must be your password, known only to you. If you forget it, no one can recover the data.
- Optionally pick AES-128 or AES-256 (both safe, 256 is a fraction slower) and the output format: base64 (compact) or hex (more readable for developers).
- Click the button, copy the result. Send the recipient ciphertext + password on separate channels (email + SMS).
When to use it
Six common situations where AES encryption solves the problem:
- Sending a password to a friend. Encrypt the password, email the ciphertext, text the password over SMS. Much safer than plain email.
- Backing up a sensitive note to the cloud. Password list, 2FA backup codes, medical info, banking details. Encrypt before uploading to Dropbox, Drive, OneDrive.
- API key in a repository. Stripe secret or DB password, paste it encrypted into README, decrypt locally.
- Sending a text file over an untrusted channel. SSH private key, a CV with personal info, internal company docs.
- Encrypting column data in a database. GDPR compliance, this is a demo of the concept.
- Sharing a secret between two people. Hotel Wi-Fi password, a door code, the combination to a safe.
To generate a strong password for encryption, use the password generator. If you need to exchange a public key instead of a password, see the PGP keypair generator.