When Symmetric Crypto Goes Wrong: AES Key-as-IV and XOR Mistakes

AES is not broken, but code that uses it often is. Here I explain why reusing the key as the CBC initialisation vector can hand an attacker the key itself, and why home-made XOR ciphers fall to known plaintext and key reuse. Each mistake comes with a working Python demonstration, the correct pattern, and a worked example from the bi0s DD CTF.

November 12, 2026 · 17 min · 3519 words · Akshit Kathuria