Skip to main content
Challenges Affine substitution
Cryptography Medium Affine cipher and frequency analysis Solves: 7

Affine substitution

Author: CyberSamSU
Points
45

The text in shifr.txt is encrypted with an affine formula for each byte: C = (a·P + b) mod 256, where a is odd (invertible). There is a flag inside the text.

Find a and b, and decrypt the text. Format: BAYROQ{...}.

Attached files
shifr.txt Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −4 pts Log in
Hint 2 −9 pts Log in
Hint 3 −13 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 27.10.2026
2. Odam 05.11.2026
3. arcanum 11.11.2026
4. murad_coder 13.11.2026
5. Komilovna 19.11.2026
6. Abdinazarova 19.11.2026
7. Doston Allayarov 28.11.2026