AES Avalanche Effect: SubBytes, ShiftRows & MixColumns
Interactive AES-128 round-function simulator: step through real SubBytes, ShiftRows, MixColumns and AddRoundKey transformations on two plaintexts differing by a single bit, and watch the Hamming distance between them race toward 50% diffusion — the avalanche effect that makes symmetric block ciphers secure.
Symmetric-key block ciphers like AES scramble data through repeated rounds of substitution and permutation until the ciphertext looks statistically indistinguishable from noise. This simulator renders two live 4×4 AES-128 state matrices as 3D blocks — one for a plaintext, one for the same plaintext with a single bit flipped — and steps both through the real SubBytes, ShiftRows, MixColumns and AddRoundKey transformations under an identical round-key schedule. A live Hamming-distance readout and diffusion bar show the avalanche effect in action: a one-bit input difference explodes into roughly half of all 128 output bits differing after just a few rounds, which is exactly the diffusion property that makes brute-force pattern analysis of AES ciphertext infeasible.
Step a real AES-128 key schedule and round function (SubBytes, ShiftRows, MixColumns, AddRoundKey) on two plaintexts that differ by one bit, and watch the Hamming distance between them race toward 50% diffusion.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install