Skip to content

Build AES from Scratch

Implement the AES block cipher from raw bit operations: state matrix, GF(2^8) arithmetic, the S-box, ShiftRows, MixColumns, key schedule, and full 10-round encryption. Then add modes of operation (ECB, CBC, CTR, GCM). The cipher behind TLS, WPA2, and disk encryption.

advanced12 lessons4 chapters12 graded exercisesPython

No sign-up needed for lesson 1 · certificate on completion · sign up to save progress

What you’ll have built

Chapter by chapter. Every step is a graded exercise.

  • The State & Galois Field
  • The Round Operations
  • Key Schedule & Full Cipher
  • Modes of Operation
Starts in Python — solve in the language you choose in the editor, same tests either way.

Curriculum

4 chapters, 12 lessons. Each lesson is a short read, one graded exercise, and a quiz.

  1. 1The State MatrixRead · exercise · quiz
  2. 2GF(2^8) ArithmeticRead · exercise · quiz
Loading reference solution…
Build AES from Scratch