Skip to content
the grown-up commonsPlay togetherTogetherBack to room

← Secret Writing · Lesson 3 of 3

Longer keys

Read or listen

About it

A shift cipher fails because every letter is moved the same way. In the 1500s, codes used a keyword instead: each letter of the message is shifted by a different amount, given by the next letter of the keyword.

Now E is not always coded as the same letter, so simple counting stops working. For about three centuries it was called unbreakable.

It fell anyway. Charles Babbage broke it in the 1850s, and Friedrich Kasiski published the method in 1863: find the length of the key from repeated patterns, then count the letters of each column as if it were a shift cipher. Modern codes rest on different mathematics, not on longer keywords.

One question

Why is a keyword cipher harder to crack than a shift cipher?

The hints are lighter by now: one nudge, then “Show me”.

Say it back

A lesson is kept once you've answered the question and written at least 8 words. Nobody grades it; it stays on this device.