I loved writing about the code Jake and Nat use to send their messages. Just like William, I think codes are fascinating! Mind you, I know I would be terrible if I ever had to solve one for real… So here are a few famous codes and ciphers (did you know that those are actually different things?) Try sending some secret messages!

Code or Cipher?

Most people don’t know this, but codes and ciphers aren’t the same. A code is a way of taking a message and making it much shorter and simpler. It works by thinking about what the words or letters mean – so you might send “What time is it?” in code by sending a clock emoji. The thing to remember is that for a code you need a codebook – like a dictionary that tells you what each codeword or picture means.

A cipher doesn’t care what the message means at all! It’s working just by symbols. A cipher uses an algorithm, which is like a set of secret instructions that tell you how to change the symbols in your message. It sounds complicated, but it really isn’t…

Substitution Ciphers

This kind of cipher works by keeping the letters in your original message (which is called the plaintext) in the same order, but replacing them with the coded message (which is called the ciphertext) by using an algorithm that turns the letters into different ones. Substitution is just another word for swapping one thing with something else.

Caesar Cipher

The most famous substitution cipher is supposed to have been invented by Julius Caesar! The Caesar cipher was used to send messages to his armies. He would write out his message and then change every letter to the letter that came three further on in the alphabet. So A would be D, and B would be E. The algorithm for this cipher is just “Add three”.

So Penhallow Hall would be: SHQKDOORZKDOO! But to make it harder to solve, you can put some extra spaces in to make the words look different: SHQKD OO RZKD OO.

You might think that this was a bit of an easy code for a military leader who was sending out secret orders, but many people in Julius Caesar’s time couldn’t read at all, so this code would have seemed even more confusing. Enemies intercepting a coded message might have thought it was in a completely different language.

Transposition Ciphers

Transposition ciphers work a bit differently. This time you’re keeping the same letters, but moving them around following the secret instructions in your algorithm. Transposition is a word that means moving something from one place to another.

Reverse Order Cipher

One really easy transposition cipher is the reverse order cipher. You write your message backwards. So Penhallow Hall would be: LLAH WOLLAHNEP. Or you can work the cipher slightly differently and keep the words in the same order, and just reverse the letters: WOLLAHNEP LLAH.

Book Code

Nat and Jake send their secret messages with a book code – even though their book is actually a ballad sheet.

This is a code rather than a cipher, because you’re looking for specific words.

This is a really good method, as long as all the words you need are in the book! The important thing to remember is that you must both have exactly the same book. Even if you both have a copy of Matilda by Roald Dahl, they may have been printed at different times so all the words will be in different places, and your messages won’t make sense.

To send a message, you find the word you want and write down the page it’s on, then the number of the line (from the top of the page counting down) and the order the word comes on the line (from left to right).

Can you solve this message? You’ll have to guess which book I’ve used first…

Hold the last page of this book up to a mirror to check your answer!