Encryption / Decryption
Encrypt and decrypt text with AES-256. Runs entirely in your browser — no data ever leaves your device.
What Is AES Encryption?
AES (Advanced Encryption Standard) is the world's most widely used symmetric encryption algorithm. It was selected by NIST in 2001 after a five-year competition and is now used in everything from HTTPS connections to encrypted hard drives. This tool uses AES-256 — a 256-bit key — which provides 2²⁵⁶ possible keys. No known attack can break AES-256 with current technology; brute-forcing it would take longer than the age of the universe. Your passphrase is stretched into a 256-bit key using PBKDF2 with SHA-256 and a random salt, so even a short passphrase produces a strong key.
How AES-256-GCM Works
GCM (Galois/Counter Mode) is an authenticated encryption mode that does two things at once: it encrypts your data (confidentiality) and produces a MAC (message authentication code) that verifies the data has not been tampered with (integrity). If the ciphertext is modified in any way — even one bit — decryption will fail and you will know the data is corrupted or has been tampered with. This makes AES-256-GCM significantly more secure than older modes like CBC, which encrypt but do not authenticate.
Encryption vs Hashing
| Feature | Encryption | Hashing |
|---|---|---|
| Reversible | Yes (with the correct key) | No — one-way only |
| Needs a key/passphrase | Yes | No |
| Use case | Storing and transmitting secrets you need to read back | Verifying passwords and file integrity |
| Example algorithms | AES-256-GCM, ChaCha20-Poly1305 | SHA-256, bcrypt, Argon2 |
When to Use This Tool
- Encrypting notes or snippets — protect sensitive text (API keys, credentials, personal notes) before storing or sharing.
- Learning about AES — understand how encryption and decryption work with a real implementation.
- Quick client-side encryption — everything runs in your browser; nothing is sent to a server.
Important: For production systems, use a dedicated secrets manager (AWS Secrets Manager, HashiCorp Vault) rather than manual encryption tools. The strength of AES-256 is only as good as the passphrase you choose — use a long, random passphrase.