K001 / Symmetric ciphers (block and stream)
AES
AES is a symmetric cipher that transforms plaintext into ciphertext of the same size.
CRYPTOGRAPHY LAB / K001
Cryptography Lab · AES
Run real computations and inspect intermediate states step by step.
Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.
AES (128 / 192 / 256)
See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.Output
Previous state
- Definition and overview
- AES is a symmetric cipher that transforms plaintext into ciphertext of the same size. Source document ↗
- Classification and reversibility
- AES is a reversible block cipher in the Rijndael family, with decryption defined as the inverse transformation from ciphertext to plaintext. Source document ↗
- Key or secret requirements
- Encryption requires a secret key used to transform plaintext into ciphertext. Source document ↗
- Operating principle and structure
- Repeatedly applies four round transformations (SubBytes, ShiftRows, MixColumns, AddRoundKey) to a 4×4 byte state array. Source document ↗
- Key size, block size and parameters
- AES fixes the block size at 128 bits and supports only 128-, 192- and 256-bit keys. Source document ↗
- Security strength and recommendation
- As of 2026, no practical attack is known that reads ciphertext without the key when AES is correctly implemented. Source document ↗
- Known attacks and vulnerabilities
- Academic biclique key-recovery attacks against full-round AES exist, but their benefits are limited to reduced rounds or small constant-factor improvements. Source document ↗
- Standards and certification
- NIST FIPS 197 specifies AES-128, AES-192 and AES-256. Source document ↗
- Typical uses
- Used as the foundation of many cryptographic services, including confidentiality protection. Source document ↗
- Implementations, libraries and tools
- Implementations, libraries and examples are available, including Intel Cryptography Primitives Library. Source document ↗
- Decryption or decoding
- Encryption and decryption functions are provided for ECB, CBC, CFB and other modes. Decryption requires the same key and parameters such as mode, IV and padding. Source document ↗
- Advantages
- Can be implemented efficiently on diverse processors and hardware. Source document ↗
- Limitations and cautions
- Modes providing only confidentiality were deprecated in TLS 1.3; combining integrity protection, such as AEAD, is recommended. Source document ↗
- Distinguishing encryption, encoding and hashing
- Not confirmed in the survey
Practical examples
Example
Supplying plaintext and a secret key produces ciphertext in 128-bit blocks. Decrypt the ciphertext with the same key and parameters such as mode, IV and padding to recover the plaintext.
Procedure
Encryption: securely generate and store the key, choose the mode and IV/nonce, apply padding or AEAD if needed, and encrypt. Decryption: reverse the transformation using the same key, mode, IV/nonce and padding information. Encryption/decryption is a key-based reversible transformation, encoding/decoding changes representation, and hashing is one-way.
Scenario
Use an AEAD mode such as AES-GCM for data-at-rest encryption or protecting communications such as TLS. Keep keys in KMS/HSM, rotate them, and separate decryption permissions from auditing.
Pitfalls and alternatives
Do not confuse AES with Base64/URL encoding or hashing. Avoid ECB, IV reuse, modes without integrity, hardcoded keys and using passwords directly as keys. Prefer AEAD (GCM/CCM), or encrypt-then-MAC, with KMS/HSM-based key management.
References
- Review of the Advanced Encryption Standard ↗
- Chapter 23: The AES (Rijndael) Design — Elements of Cryptanalysis: From Al-Kindi to Post-Quantum Standards ↗
- The Rijndael Block Cipher ↗
- Advanced Encryption Standard ↗
- Advanced Encryption Standard — Edgepedia ↗
- FIPS 197, Advanced Encryption Standard (AES) | CSRC ↗
- Example of Using AES Functions ↗
- Rijndael Functions — Documentation for Intel® oneAPI Programming Guide ↗
- A C++ Implementation of the Rijndael Encryption/Decryption ↗
- Report on the Block Cipher Modes of Operation in the NIST SP 800-38 Series ↗