Skip to content
uencoder

AES

The Advanced Encryption Standard (AES) is the symmetric block cipher NIST standardized in 2001, supporting 128/192/256-bit keys, and is the de facto standard of modern encryption.

Purpose

It replaced DES, whose keys were too short, with a secure, efficient symmetric cipher well suited to hardware acceleration.

Mechanism

It applies several rounds of transformations to a 128-bit block: SubBytes (S-box substitution), ShiftRows, MixColumns, and AddRoundKey (XOR with the round key). The key length determines the round count (10/12/14 rounds), and the key schedule derives the round keys.

Use cases

  • TLS data encryption
  • File and disk encryption (LUKS, FileVault)
  • VPN tunnels (IPsec/IKE)
  • Database field encryption

Examples

  • Input
    key=256bit, data="hello"
    Output
    ciphertext in 16-byte blocks

    Requires a mode of operation and an IV

Common errors

Using ECB mode makes identical plaintext blocks produce identical ciphertext blocks
Use GCM, or CBC with a random IV

Related terms

Related tools

References