Skip to main content
Challenges Ulugh Beg-64: the workshop cipher
Cryptography Expert AIFT-2026 Solves: 12

Ulugh Beg-64: the workshop cipher

Author: CyberSamSU
Points
130

The Samarkand observatory workshop built a new 64-bit block cipher, Ulugh Beg-64 (v2): 7 rounds, 16 parallel 4-bit S-boxes, a bit-permutation layer and a 192-bit master key (three 64-bit words; the round keys come from it through an invertible schedule). The “wiring” of the last round is a workshop secret: it is derived from the master key (the rule is written in cipher.py).

To test it, the craftsmen encrypted plaintext pairs chosen with one common difference and kept the results. You get cipher.py (the full specification, without the key, with a test vector), pairs.bin (70,000 records P, P2, C, C2, 8 bytes each, big-endian) and flag.enc (AES-256-GCM; the key is the SHA-256 of the three master-key words, the format is described inside cipher.py).

Recover the master key and open the flag. Format: AIFT{...}.

Attached files
cipher.py Log in to download
pairs.bin Log in to download
flag.enc Log in to download
SHA-256 checksums
cipher.py: 18f8bd96cd074b5d46ff1155367a86d96e13e5203ca0aa4b717541e3dfaff4c4
pairs.bin: 61b790633d8f6b03603377e8a7ae5e3f5ae45cff0f8dea3d1f4861079c09f436
flag.enc: 6b6ba37ab67aa46c50ea33a03577c4ce2afd6148f137582c63e39be17d63d187
Hints 2
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −20 pts Log in
Hint 2 −40 pts Log in
To submit a flag, log in.

First solvers

1. Noxr 12.11.2026
2. SECRE 12.11.2026
3. NullStrike 12.11.2026
4. ProfJeager 12.11.2026
5. MrDrakula 12.11.2026
6. sardor 12.11.2026
7. Лазиз 12.11.2026
8. arcanum 12.11.2026
9. Doston Allayarov 12.11.2026
10. Botir Abdualimov 12.11.2026