Join the Official Discord
Cipher guides · Polyalphabetic

How to Solve the Vigenère Cipher

A polyalphabetic cipher is a shift cipher whose shift keeps moving. A key word steps along under the message, and each letter is shifted by whichever key letter happens to be beneath it.

How to recognise it

Letter frequency looks flat. No letter dominates the way E dominates English, and the same ciphertext letter stands for different plaintext letters in different places.

Vigenère A Caesar shift that changes every letter, stepping through the key word over and over.

A worked example

Message

TREASURE MAP

Key

key GOLD

Encoded

ZFPDYICHSOA

This is a shift cipher whose shift keeps changing. That is why letter frequency looks flat and nothing obvious jumps out. This one is Vigenère. The key: key GOLD. A Caesar shift that changes every letter, stepping through the key word over and over. Line the key GOLD up under the message and undo each letter's own shift. The opening letters come back as T R E. The answer was TREASURE MAP.

Working one out from scratch

You need the key. With it, line the key up under the message, repeating it as often as it takes, and undo each letter's own shift. Without it, look for a repeated block of ciphertext — the gap between repeats is usually a multiple of the key length.

Now try one

There’s a new cipher waiting today

One a day, three guesses, and a streak that breaks the moment you miss one. Today’s is cipher #1.