Text Encryption
Encrypt and decrypt text with AES-GCM, compute SHA hashes, and convert text to and from Base64.
Start the toolDescription
A fully in-browser tool built on the Web Crypto API. It encrypts text with a password using AES-GCM with a 256-bit key derived through PBKDF2, computes SHA-256, SHA-384 and SHA-512 hashes, and converts text to and from Base64. Remember: encryption protects data, a hash cannot be reversed, and Base64 is an encoding that protects nothing.
How to use it
- Choose the operation, such as Encrypt Text or Decrypt Text.
- Enter the text and, if needed, a password (at least 12 characters for encryption, entered twice).
- Press “Run”.
- Copy the result, or press “Reverse operation” to move it to the input and decrypt or decode it.
How it works
The key is derived from your password with PBKDF2 using a random salt and 600,000 iterations, then the text is encrypted with AES-GCM and a random IV. The salt and IV are stored with the ciphertext in Base64. AES-GCM detects any tampering, but it cannot tell a wrong password from corrupted data. A forgotten password cannot be recovered.
Frequently asked questions
What is the difference between encryption, hashing and Base64?
Encryption (AES-GCM) is reversible with the password. A hash (SHA) is a one-way fingerprint. Base64 is only an encoding and offers no protection.
What happens if I forget the password?
The text cannot be recovered. The key is derived from the password only on your device, and there is no reset.
Which AES mode do you use?
AES-256-GCM, an authenticated encryption mode. GCM detects any tampering with the ciphertext, so a corrupted or modified message fails to decrypt rather than returning wrong plaintext.
How is the key derived from my password?
A PBKDF2 derivation with a random salt and a high iteration count, run in the browser. This slows down brute-force attempts without you having to do anything.
Is it strong enough for real secrets?
AES-256-GCM is a standard, widely trusted cipher. The overall security depends on your password strength. Use a long, unique passphrase; no tool can recover a forgotten or weak password.