Learn the Caesar cipher, one of the oldest codes ever devised!
This code is called a Caesar cipher. It works by moving each letter up the alphabet the same number of letters. This way, every original letter has its own new coded letter to replace it. It is named after Julius Caesar, who used it for his communications when he invaded Gaul (France) around 50 BCE. Julius always rotated his disc by three letters to encode his messages.
The Caesar cipher is not a very hard code to crack. If you know someone is using a Caesar cipher, you can try decoding the first word or two with the disc rotated one letter, and then rotated two letters, and so on. If you find something that makes sense, you are almost certainly decoding it properly. It’s not completely certain, though. There are a few words that can be decoded in two different ways. For instance, “vgddk” could be shifted by one place to make ‘wheel’, or shifted 8 places to make ‘dolls’.
Even if you didn’t know that the encoded text was a Caesar cipher, you could still crack this code. Because you are directly substituting one letter for another, although the letters are changed, some patterns are kept. In English, some letters occur a lot more often than others. For instance, ‘e’ and ‘t’ are the most common letters in English, so the letter that appears most often in the encoded text is probably an ‘e’ or a ‘t’ Once you guess some of the letters, you can use them as clues to work out the rest.
Codes are very important if you want to pass on a message without letting anyone else know what you are saying. They are particularly important during wars, and when spying on people, but they are also used in our everyday lives.
Online email services use codes to check who you are. When you type in your password, your computer puts it into a code and sends it to your email provider. If it wasn’t coded, then hackers could intercept your password, and then they could access your email. If you ever go to a website with an address that starts with ‘https’ instead of ‘http’, then your computer is using a code.
The codes that are used in computers are much harder to crack than the Caesar cipher. Public key codes have a public codeword and a private codeword. Messages coded with the public codeword can only be deciphered with the private codeword, and privately coded messages can only be decoded by the public codeword. This type of code is used for a lot of the coded messages on the internet.
If you’re after more maths activities for kids, subscribe to Double Helix magazine!
0 comments