Skip to main content
Challenges Vigenere cryptanalysis
Cryptography Hard Vigenere cryptanalysis Solves: 8

Vigenere cryptanalysis

Author: CyberSamSU
Points
110

The Vigenere cipher was considered unbreakable until 1863. In that year, Friedrich Kasiski published a method to break it, and the cipher lost its reputation.

The attack consists of two stages:

  1. Finding the key length. Kasiski method: find the distances between repeating three- or four-letter fragments in the ciphertext — their GCD is often equal to the key length. An alternative way is the Index of Coincidence: divide the text into n columns and calculate the average value of IC; at the correct n, the IC increases significantly (~0.06 for natural text, ~0.038 for random text).
  2. Solving each column. Once the key length n is determined, the ciphertext is divided into n groups, and each becomes a simple Caesar cipher. Test 26 shifts for each group and choose the one whose letter frequency best matches the Uzbek language.

The text is an Uzbek article on the topic of cybersecurity: words like TARMOQ, XAVFSIZLIK, PAROL, HUJUM appear in it several times. The most frequently occurring letters in the Uzbek language are A, I, L, R, N, O, T.

The ciphertext is in the attached file (shifrmatn.txt): only uppercase letters, divided into groups of five, spaces and punctuation marks have been removed.

At the end of the decrypted text, the word MAXFIYSOZ appears, followed by a single hidden word that concludes the text. Flag: BAYROQ{KL4SS1K_<KALIT>_<YASHIRIN_SOZ>} — both in uppercase letters.

Attached files
shifrmatn.txt Log in to download
SHA-256 checksums
shifrmatn.txt: 941a472ea3fc61dfae51235d95600fc8b4e6645b0cbe0ccb24c33074f009024a
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −11 pts Log in
Hint 2 −22 pts Log in
Hint 3 −33 pts Log in
To submit a flag, log in.

First solvers

1. W.o.X 11.09.2026
2. Лазиз 01.10.2026
3. testrejim 09.10.2026
4. 11111tttt 09.10.2026
5. Mirjaxon Qaxxarov 26.10.2026
6. Odam 04.11.2026
7. arcanum 11.11.2026
8. Doston Allayarov 28.11.2026