THE CIPHER LABNO. 01 / VIGENÈRE

A LITTLE KEY. A LOT OF POSSIBILITIES.

Secrets, letter by letter.

Meet the Vigenère cipher. A repeating keyword shifts each letter of your message. Try it, then follow the transformation.

01 Make a secret

A–Z letters are transformed. Spaces, numbers, and punctuation stay put.

Use letters A–Z. The key repeats to match your message.

ENCRYPTED MESSAGE
Calculated as you type

02 Follow the letters

Select any letter to explore it

THE CURRENT TRANSFORMATION

AMESSAGE
+
LKEY
=
LCIPHER

A = 0, B = 1, …, Z = 25

The Vigenère square

26 shifts × 26 letters
MESSAGE LETTER →
Message columnKey rowCipher letter

03 The deciphering desk

Find the key.
Reveal the message.

Start with a possible key length, try a frequency guess, then fine-tune each letter.

Paste your own or try the mystery

Up to 2,000 characters. Spaces and punctuation stay put.

Your trial key

Edit a letter to inspect its frequencies. A means no shift.

PLAINTEXT PREVIEW

01 / FIND THE RHYTHM

How long is the key?

Look for peaks. Each bar measures how much the letter patterns resemble ordinary language. Select a length to try it.

Average coincidence (IC)

Scroll to compare all lengths →

English ≈ 0.065Random ≈ 0.038

How to read these clues

IC measures how often two letters in a column match. The chart averages it across all columns for each length from 1–20. Bars are capped at 0.10; hover or focus to read the exact score. Use the length menu for keys up to 64 letters.

Multiples of the real length can also have high scores. Try a peak and its factors. Short samples are unreliable; English frequency guesses work best with plenty of text.

A starting point for English text. Read the words and revise your guesses.

04 The idea behind the secret

A different shift for every letter
01 / REPEAT

A short key goes a long way.

Write the keyword under your message, repeating it as needed. Skip spaces and punctuation so only letters use a key character.

ATTACK AT DAWN
LEMONL EM ONLE
02 / SHIFT

Each key letter is a number.

A means shift by 0, B by 1, and so on. Add that shift to encrypt; subtract it to decrypt. Wrap around whenever you pass the end of the alphabet.

Y + E → 24 + 4 → 28 → C
03 / DISCOVER

The same letter can change.

With the key LEMON, the first A in ATTACK becomes L, while the next A becomes O. Different key letters create different shifts.

A classic for learning cryptography. Repeating keys leave patterns, so this cipher is not secure for real secrets.