Vigenère cipher · 05 Weaknesses and attacks

Vigenère cipher: weaknesses and attacks

The Kasiski method, Friedman’s index of coincidence and column-by-column frequency analysis: how the Vigenère cipher is broken.

  1. 01
    Look for repetitions

    Sequences of three or more letters repeated in the ciphertext are often the same word encrypted with the same stretch of key.

  2. 02
    Measure the distances

    The distance between two repetitions is usually a multiple of the key length.

  3. 03
    Find the length

    The greatest common divisor of the distances indicates the probable length: this is the Kasiski method.

  4. 04
    Confirm with the index of coincidence

    Splitting the text into columns with the assumed length, each column should have an index similar to that of the message’s language.

  5. 05
    Solve each column

    Frequency analysis finds the shift of each column, that is each letter of the key.

Short key
The shorter the key relative to the message, the more repetitions appear and the easier the attack.
Known plaintext
Knowing even a few words of the message lets you derive key letters directly.
Predictable key
Common or context-related words are guessed with dictionary attempts.
Continue with
06 Use today

The Vigenère cipher today

Where the Vigenère cipher is found today: teaching, games, puzzles, and the lessons it left to modern cryptography.

↑