This chapter teaches keyword substitution.
### The Secret Keyword Scramble
Make Your Own · Substitution
Shifting letters a few spaces is easy, but if you want to really scramble the alphabet, you need a key. Instead of memorizing twenty-six random letters, all you need to remember is one secret word. Let's use the word SHADOW.
To build your cipher, write your keyword first. If your word has repeating letters, cross out the extras—so APPLE becomes APLE. SHADOW has no repeating letters, so write the whole word down. These form the start of your secret alphabet.
Next, write out the rest of the alphabet in normal order right after your keyword. The only rule? You have to skip any letters you already used in your word. Once you reach the letter Z, you will have a completely scrambled row.
Check out the demo panel to see the SHADOW alphabet in action. To write a message, find your real letter in a normal alphabet and swap it for the secret letter hiding directly below it.
| plain | A | B | C | D | E | F | G | H | I | J | K | L | M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | S | H | A | D | O | W | B | C | E | F | G | I | J |
| plain | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | K | L | M | N | P | Q | R | T | U | V | X | Y | Z |

Secret HQ: build your own codes and gear.
### Talking With Flashlights
Make Your Own · Morse
You do not need a heavy brass telegraph machine to send secret messages. If you have a flashlight, you have everything you need to talk to a friend across a dark campsite or a bedroom without making a single sound.
The trick is turning the alphabet into a code of short and long signals. Though it is called Morse code, a clever machinist named Alfred Vail actually invented the famous dot-and-dash alphabet at the Speedwell Ironworks in 1838.
Here is how to make your light readable: a quick flick on and off is a dot, and a longer, steady beam is a dash. Leave a short pause of darkness between each letter, and a longer pause between entire words.
Start by practicing the famous distress signal, SOS, because its rhythm is incredibly easy to remember. Once your eyes catch the beat, you can start flashing full sentences through the dark.
### Layer Your Codes For Double Security
Make Your Own · Layer It
You built a clever keyword cipher, but there is a catch. A determined snooper with enough time can still crack a basic code just by hunting for common letters. To truly protect your secrets and buy yourself time, you need to level up.
Enter superencipherment, a very long word for a very smart trick: layering your codes. Instead of encrypting your secret note just once, you scramble it, and then you scramble that new message a second time.
First, run your plaintext through your keyword alphabet. Then, take that gibberish and run it through a shift cipher, sliding every letter down three spaces. The letter "E" might turn into "J", and then morph into "M".
A snooper now has to beat two puzzles at once! Just remember to use completely different rules for each layer. If you encrypt a note twice with the exact same method, mathematically, you might even accidentally decrypt it!
| plain | A | B | C | D | E | F | G | H | I | J | K | L | M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | M | I | D | N | G | H | T | A | B | C | E | F | J |
| plain | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | K | L | O | P | Q | R | S | U | V | W | X | Y | Z |
### The Unwritten Rules of Spycraft
Make Your Own · Spycraft
Even the most brilliant code is useless if someone catches you handing the note to your friend. Real operatives never swap secrets face-to-face. Instead, they use a dead drop—a pre-selected hiding spot like a hollow tree. You hide the note, leave, and your partner picks it up later.
To pull this off, you must follow the unwritten rules of tradecraft. First, agree on your hiding spot and your cipher key in person before you need them. Second, keep your messages short. Third, never, ever hide your key in the same spot as your encrypted note!
How does your partner know a message is waiting? You leave a signpost. It could be a piece of tape on your locker or a specific book on your desk. Once they see the signal, they know to check the drop spot alone.
But the absolute most important rule of operational security isn't about hiding things—it's about why you write them. Secret codes are for solving mysteries and sharing jokes. They are never for being mean or leaving classmates out. In real spycraft, kindness is your best disguise.
| plain | A | B | C | D | E | F | G | H | I | J | K | L | M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | H | I | J | K | L | M | N | O | P | Q | R | S | T |
| plain | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| secret | U | V | W | X | Y | Z | A | B | C | D | E | F | G |
### The World Runs on Codes
Make Your Own · Your Turn
The ciphers you’ve built in this chapter aren't just ancient history. From secret alphabets to layered messages and dead drops, the spycraft you just practiced is the exact foundation of our modern digital world. You are using the great-grandparents of modern computer security.
Every single time you type a password into a video game or your parents check their bank account online, invisible codes go to work. They use the very same principles of substitution and layering that you just learned, only sped up millions of times by tiny silicon chips.
Even the wealthiest tech companies face the exact same problems you do: keeping the key safe. A mathematically brilliant digital code is completely useless if someone accidentally leaves the password written on a sticky note. That is why physical spycraft still matters today.
Now it is your turn. Invent your own cipher keys, hide them well, and set up a dead drop with a friend. Keep practicing, use your codes for fun rather than being mean, and above all else—tell no one.