AES Encrypt / Decrypt
Encrypt and decrypt data using AES-GCM or AES-CBC with configurable key sizes (128, 192, 256-bit). Generate keys and IVs, all client-side via Web Crypto API.
How to Use the AES Cipher Tool
- Select the mode: Encrypt or Decrypt.
- Choose the AES mode (GCM or CBC) and key size (128, 192, or 256-bit).
- Enter or generate a key and IV in hexadecimal format.
- For encryption: enter plaintext and click Encrypt to get Base64 ciphertext.
- For decryption: paste the Base64 ciphertext with the same key and IV, then click Decrypt.
About AES Encryption
AES (Advanced Encryption Standard) is the most widely used symmetric encryption algorithm. It supports key sizes of 128, 192, and 256 bits. AES-GCM (Galois/Counter Mode) provides both encryption and authentication, making it the recommended mode for most use cases. AES-CBC (Cipher Block Chaining) is an older mode that requires separate authentication. This tool uses the Web Crypto API for all cryptographic operations, ensuring no data leaves your browser. The key and IV must be provided in hexadecimal format.
Frequently Asked Questions
AES-GCM provides authenticated encryption, meaning it verifies data integrity and authenticity alongside confidentiality. AES-CBC only provides confidentiality and requires a separate mechanism (like HMAC) for authentication. GCM is recommended for new applications.
The cryptographic operations use the Web Crypto API, which is a well-audited implementation. However, for production use, you should use established encryption libraries and follow proper key management practices rather than manually handling keys in a web tool.