Skip to main content
Challenges Key expansion
Cryptography Medium AES internal structure Solves: 8

Key expansion

Author: CyberSamSU
Points
50

AES uses a different key in each round. These keys are derived from the main key through the key expansion (key schedule) process. For AES-128, 11 round keys are generated from a 16-byte key (from round 0 to round 10).

The process works on 4-byte "words": on every 4th word, RotWord (cyclic shift), SubWord (S-box), and the Rcon constant are applied, while for the rest, a simple XOR is sufficient. An important conclusion: an attacker who knows one round key can fully recover the main key, because the process is reversible.

The attached kalit_kengaytirish.py file contains a fully working implementation — just run it (python kalit_kengaytirish.py) and get the 11 round keys. The key inside the file is exactly the key below.

Main key (hex): e0d15a8626c4768395ba83e0b125607f

The 32-byte flag is XORed with the following mask: niqob = raund_kalit[10] || raund_kalit[7] (32 bytes in total).

Result (hex):

7db2b4698b571a4ce1bb3f1a11b3a4c7ffa176396be304fa5c80ac073c841180

XOR is its own inverse: if you XOR again with the same mask, the original text returns.

Attached files
kalit_kengaytirish.py Log in to download
SHA-256 checksums
kalit_kengaytirish.py: 54aa6253582abbf48b3a2439d3e755d78ce4d03bfb65d719dd6ab1dc40bd88b1
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −5 pts Log in
Hint 2 −10 pts Log in
Hint 3 −15 pts Log in
To submit a flag, log in.

First solvers

1. W.o.X 17.09.2026
2. Лазиз 04.10.2026
3. testrejim 09.10.2026
4. Mirjaxon Qaxxarov 27.10.2026
5. Odam 05.11.2026
6. arcanum 11.11.2026
7. AGENT X 26.11.2026
8. Doston Allayarov 28.11.2026