Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Cryptography / Modern practice

Block Ciphers and AES

How a short shared key scrambles gigabytes: rounds of substitution and permutation, and the modes that chain blocks safely.

3 min read · 1 sections · 1 checks

Contents 2 sections
  1. §1Substitute, permute, repeat
  2. ?Check yourself

By the end you can

  • Describe confusion and diffusion
  • Outline the AES round structure
  • Explain why ECB mode is unsafe

Helps to know: Perfect Secrecy and the One-Time Pad

§1Substitute, permute, repeat

AES encrypts 128-bit blocks in 10 to 14 rounds. Each round substitutes bytes through an S-box (confusion), shifts rows and mixes columns (diffusion), and XORs in a round key. Flipping one input bit changes about half the output bits.

Check yourself

  1. Q1
    Why is ECB mode considered insecure?