Skip to main content
Challenges ShiftRows and MixColumns
Cryptography Medium AES internal structure Solves: 7

ShiftRows and MixColumns

Author: CyberSamSU
Points
55

SubBytes changes each byte individually, but it does not mix the bytes. The mixing (diffusion) is performed in two steps:

  • ShiftRows — the r-th row of the state matrix is cyclically shifted to the left by r positions (the 0-th row does not move).
  • MixColumns — each column is multiplied by a fixed 4x4 matrix in the GF(2^8) field. A change in one byte spreads to the entire column.

Both are linear and reversible operations: InvShiftRows shifts the rows to the right, and InvMixColumns multiplies by the inverse matrix (coefficients 14, 11, 13, 9).

The attached raund_funksiyalari.py file provides only the forward direction. ShiftRows was applied first, then MixColumns to a 16-byte secret block, and the result was as follows (hex):

756b63707e6c6d70a6c75a4aa5e16341

Recover the original 16 characters (they are readable ASCII text) and assemble the flag:

BAYROQ{A3S_<16 belgi>}

Pay attention to the order: during encryption it was ShiftRows -> MixColumns, so in the reverse direction it is InvMixColumns first, then InvShiftRows.

Attached files
raund_funksiyalari.py Log in to download
SHA-256 checksums
raund_funksiyalari.py: 4c33fd92e3abc54b615a5527be78e0ecbd92dc3117bb7bc68ac40337a47cecf9
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −5 pts Log in
Hint 2 −11 pts Log in
Hint 3 −16 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. Doston Allayarov 28.11.2026