Day 17: A Cryptic Message
The control room falls silent except for the ominous hum of failing systems. Red warning lights pulse across every console, casting your shadow in jerky, frantic patterns against the wall. The main display flickers, then stabilizes to show a single, devastating message: "CONTROL SYSTEM LOCKED - ACCESS DENIED."
Your ship's AI materializes with what sounds suspiciously like amusement in its voice. "Well, well, Explorer. Look at the fine mess we're in today. You see, our control system decided to play hide-and-seek and is doing a rather commendable job, I must admit." The hologram gestures dismissively at the locked terminals. "It's encrypted the access codes. Isn't that just splendid?"
You stare at the screens displaying nothing but gibberish where working code should be. Every function name, every variable, every comment has been scrambled into meaningless letters and symbols. The life support systems are running on backup power, the navigation is offline, and the only thing standing between you and permanent exile in deep space is your ability to crack this encryption.
"You're not just an Explorer now," the AI continues with theatrical flair. "You're a cryptographer. It's like being a detective, but with more numbers and less coffee." The stakes couldn't be higher. Without access to the control systems, you can't repair the ship, can't navigate home, can't even send a distress signal. This isn't just a puzzle anymore. It's survival.
What You'll Learn
When you finish this lesson, you'll be able to:
- Understand how Caesar cipher encryption works
- Manually decode encrypted text using shift patterns
- Apply decryption techniques to both letters and numbers
- Use online decryption tools effectively
- Extract security codes from decrypted programs
- Recognize common encryption patterns in real-world systems
More importantly, you'll learn that sometimes the biggest obstacles aren't technical problems but puzzles waiting to be solved with patience and logic. Your HERO Board will display the security codes you need to proceed, but only after you've proven yourself worthy by cracking the cipher.
Understanding Encryption
Encryption is like speaking in code, but with rules that computers can follow. Think of the secret languages you might have invented as a kid, where A=1, B=2, C=3. That's essentially what encryption does: it takes normal information and scrambles it according to a pattern, so only someone who knows the pattern can unscramble it.
The Caesar cipher is one of the oldest and simplest encryption methods. Named after Julius Caesar, who used it for military communications over 2,000 years ago, it works by shifting every letter in the alphabet by a fixed number of positions. If you shift by 3, then A becomes D, B becomes E, C becomes F, and so on.
Here's the clever part: when you reach Z and need to keep shifting, you wrap around to the beginning of the alphabet. So with a shift of 3, X becomes A, Y becomes B, and Z becomes C. It's like the alphabet is written on a wheel that keeps spinning.
The "key" in Caesar cipher is simply the shift number. Know the shift, and you can decode any message. Don't know it? You'll have to try all 25 possible shifts until something makes sense. This trial-and-error approach is called a "brute force" attack, and it's surprisingly effective against simple ciphers.
Your spacecraft uses this older encryption precisely because it's simple and reliable. In an emergency, you don't want overly complex security that might lock you out permanently. The trade-off is that Caesar ciphers are relatively easy to crack if you know what you're doing.
Wiring
Today you're using the same wiring from Day 16. Your TM1637 seven-segment display should already be connected and ready to show the security codes once you decrypt the program.

- CLK pin connects to digital pin 5 (controls the timing)
- DIO pin connects to digital pin 4 (sends the data)
- VCC connects to 5V (powers the display)
- GND connects to GND (completes the circuit)
If your display isn't working, double-check these connections. The encrypted program won't reveal anything until your hardware is properly set up.
The Encrypted Code
Here's what the ship's computer is showing you. This used to be working code, but now it's complete gibberish:
This is lesson 18 of 31 in 30 Days Lost in Space — a professionally produced Arduino course taught by Dr. Greg Lyzenga (NASA JPL scientist, Harvey Mudd professor). Each lesson features cinematic-quality video produced with a 20-30 person professional crew.
All video lessons are free to watch. Get the kit at craftingtable.com — $100 with a 30-day money-back guarantee.