Shift Ciphers
A shift cipher encodes and decodes a message written in a specific alphabet by matching characters in the original alphabet against a cipher version where every ciphered character has been shifted left (or right) against the original alphabet.
It’s useful and practical to represent the Shift Cipher as a pair of concentric circles (I.e., one drawn inside the other, both with the same center point). The original alphabet is written around the outside circle, and the cipher alphabet is written around the inner circle.
Drawn as concentric circles on two pieces of card stock, and with the inner circles cut out and mounted so they can rotate freely about the common center, you have a Shift Code Wheel that may be used to encode and decode secret messages. A template is shown in the figure and available full size . See also our Shift Cipher Tool
SQPR – The Roman Origins
- Historical Sources: The earliest surviving written descriptions of the method come from second-century CE writers like Suetonius, Aulus Gellius, and Cassius Dio. [1]
Use a Cipher Wheel to Read a Message
This message is enciphered using The Caesar Cipher, a known shift key of three:
PHHW DW WKH RDN WUHH
Can you read the message?
Crack the Cipher
Here’s another enciphered message, but the shift key is unknown. Can you read the message anyway?
QTTP ZSIJW YMJ WJI GJSHM
Try every key; there are only 25 shift keys to try and the Shift Cipher Tool can be used to decipher quickly, entering the cipher text in the message field and quickly trying each shift key. Worst case, what’s the longest it take to try them all? Least? Average? How many did you try before you found a message that made sense?
The Big Idea: Brute Force Attacks Can Crack a Simple Shift Cipher Easily
Simple shift ciphers are weak and vulnerable. They can be cracked by brute force, trying all possible keys, because there so few possible keys. This fact leaves communicators in search of more secure methods for keeping secrets.