Meet Ziggy. Press play to watch the video.

Your mission

Ziggy the squirrel hides secret notes with a zigzag trick called the rail fence cipher. Today you will learn the trick.

  1. Watch Ziggy's video.
  2. Open each tab, from left to right.
  3. Earn four badges to unlock Ziggy's Vault.

Take your time. If you miss a question, you get a new one, so think before you click.

My badges

Teacher note
  • Built for grades 3 to 5. Plan on 40 to 50 minutes, or two shorter sessions.
  • Students cannot click until they get it right. A missed question swaps in a new question, and a missed code swaps in a new message.
  • Messages are picked at random, so neighbors will not have the same answers.
  • Ziggy's Vault is a team challenge. It works best with scratch paper, or graph paper, and a partner.
  • The Zigzag Machine, a free encoder and decoder, stays locked until the vault is open. That way nobody can use it to skip the practice.
  • Offline extension: students write a note on graph paper, trade with a partner, and whisper the number of rails.
  • This page pairs well with the scytale lesson. Both ciphers move letters around instead of swapping them.
  • Progress saves in the browser on this Chromebook only.