Text Encryption
DeveloperEncrypt and decrypt text using AES, DES, and TripleDES algorithms. Secure client-side encryption tool.
What is This Tool?
A text encryption tool encrypts and decrypts text using standard algorithms like AES-256-GCM and AES-256-CBC. Enter plaintext and a password to produce ciphertext that can only be decrypted with the same password — useful for protecting sensitive data in transit or storage.
AES (Advanced Encryption Standard) is the gold standard for symmetric encryption, approved by NIST and used worldwide. AES-256-GCM provides both confidentiality and authenticity (authenticated encryption), while AES-256-CBC provides confidentiality only and requires a separate MAC for integrity.
All encryption happens client-side in your browser via the Web Crypto API — your text and password never leave your device, and nothing is sent to a server.
AES Encryption Algorithms Compared
| Algorithm | Key Size | Authenticated? | When to use |
|---|---|---|---|
| AES-256-GCM | 256-bit | Yes (built-in) | Default for new applications. Detects tampering, no separate MAC needed. |
| AES-256-CBC | 256-bit | No (needs HMAC) | Legacy compatibility. Pair with HMAC-SHA256 for "encrypt-then-MAC". |
| AES-128-GCM | 128-bit | Yes | Faster on low-power hardware. Still secure against all known attacks. |
| 3DES (TripleDES) | 168-bit | No | Deprecated by NIST in 2023. Only for legacy decryption — never new code. |
If you can choose freely, use AES-256-GCM. The password is fed through PBKDF2 (or Argon2 in stronger setups) to derive an actual cryptographic key — which is why a long, high-entropy password matters more than picking 256 bits over 128.
Common Use Cases
Sensitive Data Protection
Encrypt API keys, credentials, and sensitive messages before sharing through insecure channels like email or chat.
Configuration Encryption
Encrypt sensitive config values (database passwords, API secrets) before committing to version control.
Learning Cryptography
Experiment with encryption parameters (algorithms, modes, key derivation) to understand symmetric cryptography concepts.
Data at Rest Protection
Encrypt files and text before storing in databases or cloud storage that may not provide built-in encryption.
Frequently Asked Questions
Is this encryption secure?
Yes. AES-256 is the same standard used by governments and financial institutions. Security depends on password strength — use a long, random password.
What is the difference between GCM and CBC?
GCM (Galois/Counter Mode) provides authenticated encryption — it detects tampering. CBC (Cipher Block Chaining) encrypts but does not detect modifications without an additional MAC.
Can I decrypt without the password?
No. AES encryption with a strong password is computationally infeasible to break. If you lose the password, the data is unrecoverable.