AES encrypts blocks, not identities
AES blocks are fixed at 128 bits with keys of 128, 192 or 256 bits, and this tool uses 256. The block cipher only scrambles one block; chaining blocks and resisting tampering is the mode's job. GCM produces an authentication tag during encryption and verifies it first on decryption, so modified data fails outright — which is why it beats CBC for modern use and is the default here.
Steps
- Enter a key or generate a random one; the eye toggle reveals it temporarily.
- Choose GCM or CBC and Base64 or hex output.
- Pick an iteration count — ten thousand, one hundred thousand or six hundred thousand — to stretch a passphrase.
- Paste content, then encrypt or decrypt and read the result.
- Files go through encrypted upload or .aes decryption; copy the output.
Why a passphrase cannot be the key
Human passphrases are short, so using one directly collapses the key space to natural language. Derivation salts the passphrase and hashes it many times into a fixed-length key; more iterations raise guessing cost at the price of speed, with a hundred thousand a fair modern compromise. The salt must be random and stored with the ciphertext, or identical passphrases produce identical keys and batch cracking accelerates. GCM also needs a random nonce that must never repeat under the same key — reuse recycles the keystream and destroys confidentiality.
CBC versus GCM in practice
CBC needs an IV, pads plaintext to block size and unpads after decryption. It provides no integrity, so flipping a ciphertext bit changes plaintext predictably — attacks seen in real protocols. GCM needs no padding and emits a tag, so any tampering surfaces immediately, at the cost of strict nonce discipline. New systems use GCM; CBC survives for legacy compatibility.
Common problems
Treating a short passphrase as a key. Losing the salt or nonce, which makes decryption impossible. Reusing a nonce under GCM, a fatal error. Deleting Base64 line breaks, which breaks decoding. Mixing hex and Base64, both of which look alphanumeric. And trusting truncation of long input without verifying length first.
Where browser encryption stops:Real user data, keys and payment details never belong in a browser tool regardless of local-processing claims. Long-term secrets need server-side key management with separation and rotation. Multi-party decryption calls for envelope encryption: a symmetric key protects data, an asymmetric key protects that key, so rotating people means rotating the envelope. Compliance also wants written records of algorithm, key length and rotation, which a web tool cannot supply.