Santekno/toolsCategoriesTutorials

AES Encrypt / Decrypt

AES-256-CBC symmetric encryption/decryption with passphrase. OpenSSL-compatible. Passphrase never leaves your browser.

Processed in your browserUpdated · Jan 2026
Input
0 chars
Output
0 chars

How to use AES Encrypt / Decrypt

Paste your input on the left, choose the options you want, and the output appears instantly on the right. Everything runs in your browser — none of your data is sent to a server.

  • Paste or type your input in the INPUT panel
  • The output regenerates automatically as you type
  • Use Copy to put the result in your clipboard
  • Click Sample to load a working example

What is AES Encrypt / Decrypt?

AES Encrypt / Decrypt performs AES-256-CBC encryption with PBKDF2-derived key (OpenSSL "Salted__" format — interoperable with `openssl enc -aes-256-cbc -salt -base64`). Each encryption uses a random 8-byte salt, so encrypting the same plaintext twice produces different ciphertexts (resistant to ciphertext-equality leaks). Output as base64 (default, copy-paste friendly) or hex. Decrypt mode auto-detects either format. The passphrase is held only in React component state — never written to localStorage, sessionStorage, IndexedDB, or cookies; closing the tab forgets it. For high-security workflows prefer authenticated encryption (AES-GCM) — CBC has no integrity check, so a corrupted ciphertext decrypts to garbage instead of erroring. This tool is part of santekno's developer toolbox — a curated collection of utilities built for engineers who care about speed, privacy, and simplicity.

Common use cases

  • Debugging API payloads and integration issues
  • Inspecting tokens, hashes, or encoded strings during development
  • Generating fixtures and sample data for tests
  • Sharing readable output with teammates in code reviews

FAQ

Yes for the default base64 output. Encrypt here → decrypt with `openssl enc -aes-256-cbc -d -salt -base64 -k YOUR_PASSPHRASE`, and vice versa. Both use the "Salted__" magic header + 8-byte random salt + PBKDF2 key derivation.