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
To submit a flag, log in.