What Are Secret Codes?
Imagine, for a moment, that you've just discovered a treasure map hidden inside your library book. The map shows where a group of kids once buried something amazing—a stash of rare baseball cards, a collection of shiny coins from different countries, or maybe even a diary filled with secrets about your school. The map itself looks normal at first glance, just some squiggly lines and mysterious symbols. But when you hold it up to a candle (very carefully, with a grown-up nearby), suddenly the lines transform into words. The symbols become a message only you can read: "Meet me at the old oak tree at midnight."
How did those words appear? How did someone hide a message in plain sight, visible only to the person who knows the trick to reading it? This, my friend, is the world of secret codes—and it's a world that's been exciting people for thousands of years.
Let's journey back in time, just a few thousand years, to a place called ancient Greece. In those days, Greece wasn't one big country like it is today. Instead, it was made up of many city-states, each with its own government, its own army, and its own way of doing things. The city-state of Sparta was famous for something very specific: its warriors. Spartan soldiers were the toughest, bravest fighters in all of Greece. They trained from the time they were seven years old, learning to run, jump, swim, fight, and endure pain without complaint. Their motto was simple: "Come back with your shield, or on it." This meant they expected every soldier to fight until the very end—no surrendering, no running away.
But here's the thing about being a great warrior: you can't win battles if your enemy knows exactly what you're planning to do. Imagine you're a Spartan commander. You've gathered your best soldiers on one side of a mountain, and your allies are on the other side. You need to send them a secret message telling them to attack at dawn, from both sides, so the enemy gets caught in the middle. But here's the problem: enemy spies are everywhere. Messengers get captured. Ravens get shot down. How do you get your secret battle plan to your allies without the enemy finding out?
The Spartans were clever people, and they came up with an amazing solution. They invented something called a scytale (say it with me: SY-tuh-lee). The word "scytale" comes from the Greek word "skytale," which means "baton" or "stick." And that's exactly what it was—a stick, usually made of wood, that played a very special role in secret communication.
Now, before we learn how the scytale worked, let's understand why the Spartans needed it in the first place. You see, in ancient times, communication was incredibly difficult. Today, we can send a message across the world in less than a second—just by tapping a few buttons on our phones. But back then, if you wanted to send a message to someone in another city, you had to physically send a person carrying your letter. That person might have to walk for days or even weeks through dangerous territory. They could get lost, get sick, or worse—get captured by enemies who would steal the message and read all your secrets.
Even when messengers did arrive safely, there was another problem: what if someone intercepted the message? In those days, most messages were written on pieces of papyrus (a kind of paper made from a plant that grew along the Nile River in Egypt) or on clay tablets. If an enemy caught your messenger, they could simply unroll the papyrus or break open the clay and read everything you wrote. It was like sending a postcard through the mail—anyone who touched it along the way could read it.
The Spartans needed a way to send messages that would be completely useless to anyone who didn't know the secret trick to reading them. And that's exactly what the scytale did.
The way a scytale works is surprisingly simple, but incredibly clever. Imagine you have a long strip of parchment or leather—something you can wrap around a stick. First, you take your secret message and write it across the strip. But here's the key: you don't write the letters in order. Instead, you write them in a way that only makes sense when the strip is wrapped around a stick of the exact same size as the one your friend has.
Let me explain this with a simple example. Suppose you want to send the message "ATTACK AT DAWN." That's twelve letters total. If you wrote it normally on a strip of paper and someone intercepted it, they could read it instantly: ATTACK AT DAWN. Boring! Everyone would know your plan.
But with the scytale, you do something different. You take a long strip of parchment and wrap it around your stick in a spiral, like a barber pole. Then you write the letters across the wrapped parchment, one letter per loop of the spiral. When you unwrap the parchment and send it to your friend, it looks like a bunch of random letters all jumbled together. Without the right stick, the message is completely unreadable!
Let's try a mini version ourselves to see how this works. I'll use a simpler example with fewer letters, so it's easier to understand.
Imagine you want to send the message "SAVE ME." First, count the letters: S-A-V-E-M-E. Six letters. Now, imagine you have a scytale stick that fits exactly two letters per row when you wrap the paper around it. You take your strip of paper and write:
Row 1: S A Row 2: V E Row 3: M E
When you write this across the wrapped strip, the letters get jumbled in a specific pattern. Let's map it out. On the wrapped stick, your first row goes around once, second row the next round, and so on. When you write across the rows on the wrapped paper, the letters end up in a different order than they started.
Actually, let me show you more clearly. When you write on the wrapped strip, you're writing across the spirals. So if you write "SAVE ME" on a strip wrapped around a stick, the letters would appear on the strip in the order you wrote them, which depends on how the paper is wrapped.
Here's what really happens: Take a strip of paper and wrap it around a pencil or a dowel stick. Now, with the paper wrapped tightly, write the letters of your message across the paper, going from left to right. Each letter will appear on a different part of the wrapped paper. When you unwrap the paper, the letters will be all mixed up!
For example, if your message is "SAVE ME" and you write it on a paper wrapped around a pencil, the unwrapped strip might read something like "S V A E M E" or some other jumbled version. But when your friend wraps the same paper around a pencil of exactly the same size, all the letters line up perfectly, and the message becomes clear again!
The ancient Spartans used this exact method to send battle plans. When a commander in one city needed to send orders to troops in another city, he would write the message on a scytale strip, unwrap it, and send the seemingly meaningless strip of leather or parchment with a trusted messenger. Even if enemy spies captured the messenger and found the strip, they couldn't read it without having a stick of exactly the same diameter. And believe me, getting the exact size right is harder than you might think—slightly bigger or smaller, and the letters don't line up at all.
This was brilliant! The Spartans had essentially invented one of the first encryption devices in human history. Encryption is just a fancy word for the process of hiding information so that only the right people can understand it. And decryption is the opposite—taking the hidden information and turning it back into something readable.
Now, here's where things get even more interesting. As brilliant as the scytale was, the Spartans weren't the only people in history who invented secret codes. In fact, secret codes and messages have been important to humans for almost as long as we have had writing itself. Let's explore why.
Think about all the reasons someone might want to send a secret message. Kings and queens needed them to plan attacks and defe