LiteConv

/

AES Encrypt & Decrypt

Encrypt and decrypt text with AES.

Keep the mode, key and nonce together with the ciphertext format

Worked example

Use a synthetic message when learning the encrypt/decrypt workflow. Encrypt with a key and the chosen mode, then decrypt with exactly the same key, IV or nonce, and matching encoding. A successful round trip demonstrates compatibility for that configuration, not the security of an entire application.

What to check

Prefer authenticated encryption such as AES-GCM for new designs. Never reuse a GCM nonce with the same key. CBC requires an unpredictable IV and separate authentication. Do not store real secrets in a shared browser or copy the private key next to ciphertext. Use a vetted protocol for production.