Shift cipher
The shift cipher is the oldest and simplest cipher still taught today: every letter moves the same number of places along the alphabet. Shift by three and A becomes D, B becomes E, and Z wraps round to C.
A little history
The Roman historian Suetonius wrote that Julius Caesar protected his private letters by replacing each letter with the one three places further on, which is why a shift of three is still called the Caesar cipher. Caesar's successor Augustus reportedly used a shift of just one. For readers who didn't know the trick, that was enough, because few people could read at all, let alone suspect a code.
Shift ciphers have never really gone away. In the 1980s, Usenet discussion groups used ROT13, a shift of thirteen, to hide film spoilers and the punchlines of jokes. Because the alphabet has 26 letters, applying ROT13 twice brings you back where you started: SPIES becomes FCVRF and then SPIES again.
How it works
- Choose a key: a number from 1 to 25.
- Move each letter of the message that many places forward in the alphabet.
- If you pass Z, carry on from A.
To decrypt, move each letter back by the same amount.
SPIESVSLHVBoth S's become V. A shift cipher always turns the same letter into the same letter, and that is its weakness.
How to crack it
There are only 25 useful keys, so the simplest attack is to try them all. Write out the 25 possible decryptions and read down the list until one of them is a real word. With a pencil it takes a few minutes; a computer does it instantly.
For longer messages there is an even quicker route: the most common letter in English is E, so the most common letter in the cipher is very likely to be E shifted. Find it, work out the distance, and you have the key.
Shift ciphers in Cyrune
The shift cipher is Cyrune's gentlest puzzle, rated one star. Turn the single rotor and the windows under the lamps show the decoded word for that key. Your coloured guesses help too: one green tile tells you exactly how far that letter was moved, and that distance is the key for every letter.
Related ciphers
- Affine cipher ★★★★☆
- Vigenère cipher ★★★☆☆
- Shift + scramble ★★★☆☆