Skip to main content
Challenges Frequency analysis — substitution cipher
Cryptography Expert Frequency analysis Solves: 10

Frequency analysis — substitution cipher

Author: CyberSamSU
Points
150

In a simple substitution (monoalphabetic substitution) cipher, each letter of the alphabet is replaced by another single letter. The key is the scrambled alphabet itself, which means 26! ≈ 4·10²⁶ variations. Brute-force is completely impossible.

Nevertheless, this cipher is vulnerable to frequency analysis. Al-Kindi documented this method in the IX century: in natural language, letters are distributed unevenly, and this unevenness is preserved even after encryption.

Procedure:

  1. Count the letter frequency in the ciphertext. The most frequent letters in the Uzbek language are: A, I, L, R, N, O, T, S, M, K.
  2. Look at one-letter and two-letter words: words such as VA, BU, HAR, ENG, UCHUN, BILAN are found quickly.
  3. Use repeating patterns: the text is about cybersecurity, therefore the words PAROL, TARMOQ, XAVFSIZLIK, HUJUM appear.
  4. Make guesses, partially reveal the text, and change your guess where it does not fit.

Important hint: numbers, punctuation marks, underscores and brackets are not encrypted — they remain in their places. Because of this, the flag format — ??????{??4??1?_...} — is clearly visible at the end of the text. The 6 letters before the flag correspond to the word BAYROQ; this gives you 6 letters right away.

The ciphertext is in the attached file: shifrlangan_maqola.txt (more than 1100 characters).

Solving by hand is also possible, but a faster way is to write a small program to test letter substitutions interactively.

Attached files
shifrlangan_maqola.txt Log in to download
SHA-256 checksums
shifrlangan_maqola.txt: 6012c52706a6d0dfd124cd5bc630c007a5b17e55ff6d544152898654a84d6995
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −15 pts Log in
Hint 2 −30 pts Log in
Hint 3 −45 pts Log in
To submit a flag, log in.

First solvers

1. Stiv_084100 10.09.2026
2. W.o.X 11.09.2026
3. Лазиз 01.10.2026
4. testrejim 09.10.2026
5. Raumdeuter 09.10.2026
6. 11111tttt 09.10.2026
7. Mirjaxon Qaxxarov 26.10.2026
8. Odam 04.11.2026
9. Furqat Turayev 11.11.2026
10. Doston Allayarov 28.11.2026