Keyword cipher
A keyword cipher is a substitution cipher with an easy-to-remember key. Instead of memorising a whole scrambled alphabet, you remember one word, and the alphabet is built from it.
A little history
Keyed alphabets were popular for centuries because they solve a real problem: a fully random substitution alphabet is hard to remember and dangerous to write down. A keyword lets two people rebuild the same alphabet from memory. The trade-off is that the alphabet is less random, which helps codebreakers.
How it works
- Write the keyword's letters, dropping any repeats.
- Continue with the rest of the alphabet in order, skipping letters you've already used.
- Line this alphabet up under the normal one and swap each message letter for the letter beneath it.
ABCDEFGHIJKLMNOPQRSTUVWXYZZEBRASCDFGHIJKLMNOPQTUVWXYSPIESPMFAPS is the 19th letter, so it becomes the 19th letter of the keyed alphabet, P. The end of the alphabet, T to Y, barely moves.
How to crack it
A keyword cipher can be attacked like any substitution cipher, by counting letters and spotting common words. But it has an extra weakness: after the keyword, the alphabet runs in order. Letters near the end of the alphabet often encrypt to themselves or to a neighbour, and once you've found a few letters you can often guess the keyword and fill in everything else.
Keyword ciphers in Cyrune
In Cyrune the keyword is itself a five-letter word, so there are two words to find. Repeated lamps mean repeated letters. Tap the keyword box, type a guess and watch the windows: if your keyword is right, the decoded word appears.
Related ciphers
- Substitution cipher ★★★★☆
- Affine cipher ★★★★☆
- Pigpen cipher ★★★☆☆