Kasiski Break
You'll break a Vigenere cipher with no keyword by finding the key length on paper, then take apart a Playfair with a single guessed word.
About
This is the badge where you stop using ciphers and start breaking them. Friedrich Kasiski published the method in 1863: repeated chunks in the ciphertext sit at distances that are multiples of the key length, so you find the repeats, measure the gaps, take the common factor, and the unbreakable cipher falls into a handful of Caesar shifts you already know how to solve. It takes a few evenings the first time and about an hour once you have the rhythm. Then you turn the same stubbornness on a Playfair, which has no single-letter frequencies to count, using a crib, meaning a word you know is in there somewhere.
At a glance
- Per requirement
- 35 XP
- Completion bonus
- 300 XP
- Requirements
- 6
- Takes
- Three or four weeks
- Skill level
- Intermediate (months of practice)
- Cost
- Free
- Supplies
- Nothing special
- Where
- At home
- Other people
- With other people
Requirements
-
1
Get a Vigenere ciphertext of at least 300 letters from a friend who keeps the keyword from you. Ask for a keyword of four to seven letters and ordinary English plaintext, in five-letter groups. Longer is easier, so do not let them give you 100 letters as a kindness. Take a photo of the ciphertext as you received it. Photo
-
2
Find every repeated group of three or more letters and the distances between them. Underline the repeats in different colors and write the distance from each occurrence to the next. Factor each distance (a gap of 24 means the key length divides 24) and find the number that divides most of them. Take a photo of the marked-up ciphertext and your factor table. Photo
-
3
Check the key length with the index of coincidence. Write the ciphertext into columns of your guessed key length. For each column, count each letter, add up n times (n minus 1) across the 26 counts, and divide by the column length times (the column length minus 1). English comes out near 0.066 and random letters near 0.038. If the columns look like English by this test, the length is right. Take a photo of your columns with the figures. Photo
-
4
Solve each column as a Caesar shift and recover the keyword. Count the letters in each column, line the peak up with E, and read the shift as a letter. The shifts spell the keyword. If one column gives nonsense, match the whole shape of the count (the gap before E, the hump of R, S, T) rather than just the single peak. Take a photo of your column counts and the recovered keyword, or film yourself deciphering the first line of plaintext with it. Photo or video
-
5
Break a Playfair ciphertext with a crib and recover enough of the square to read it. Get a Playfair message of at least 150 letters from a friend, with one word they tell you is in it (a name, a place, MEETING). Slide the crib along the pairs until the letter rules hold without contradiction, then fill cells of the square from what each pair tells you, the way the American Cryptogram Association's solvers do it. Take a photo of your partial square and the plaintext you can read from it. Photo
-
6
Write up the break as a one-page method you could hand to a beginner. Steps, not theory, with the numbers from your own break. Take a photo of the page. Photo