Skip to main content
Challenges Hill cipher: known plaintext
Cryptography Medium Hill cipher and known-plaintext attack Solves: 10

Hill cipher: known plaintext

Author: CyberSamSU
Points
55

The message is encrypted with the Hill cipher: bytes are encrypted using a 3x3 key matrix K modulo 251. Every three bytes become a column vector P and C = K · P mod 251.

The plaintext begins with a known sentence: "Maxfiy buyruq: " (followed by the flag), ending with " Tamom.". hill-shifr.txt provides the ciphertext as decimal numbers in the range 0..250 (in blocks of three).

Recover the key and find the flag. Format: BAYROQ{...}.

Attached files
hill-shifr.txt Log in to download
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. testrejim 09.10.2026
2. Mirjaxon Qaxxarov 27.10.2026
3. Odam 05.11.2026
4. arcanum 11.11.2026
5. murad_coder 13.11.2026
6. pentester_uz 14.11.2026
7. Doston Allayarov 14.11.2026
8. Xadicha_7 18.11.2026
9. rushana24 19.11.2026
10. Abdinazarova 19.11.2026