Lesson · Grade 6 · Applied Design, Skills and Technologies

Secret codes: the Caesar shift cipher

  • Grade 6
  • Applied Design, Skills and Technologies
  • 1 min 29 s
  • British Columbia
  • BC6-AD-02

An alphabet strip, with a second alphabet shifted 3 places under it, shows how the Caesar cipher turns PIZZA into SLCCD, one letter at a time, and how the letters wrap around from Z back to A. Shifting back 3 decodes the message, and a code breaker who tries every shift finds the word quickly, because there are only 25 shifts to try.

Anyone can watch two lessons on the website without an account. Signing in is free, no payment and no card, and opens three a day; Plus has no limit.

Loading

In one sentence

The question this lesson answers

How do you send a secret message that only your friend can read?

One very old way is the Caesar shift cipher, named after Julius Caesar.

Transcript

What the lesson says

How do you send a secret message that only your friend can read?

One very old way is the Caesar shift cipher, named after Julius Caesar.

First, write the alphabet in a row.

Under it, write the alphabet again, shifted 3 places, so A sits above D.

Letters that slide off the front wrap around, so X, Y and Z sit above A, B and C.

The number 3 is the secret key, and only you and your friend know it.

To encode PIZZA, find each letter on top, read the letter below it, and repeat for every letter.

P becomes S, I becomes L, each Z becomes C, and A becomes D.

So PIZZA becomes S, L, C, C, D.

Exact steps like these, followed in order, are called an algorithm.

Your friend decodes it by shifting each letter back 3 places.

A code breaker without the key can just try every shift.

With 26 letters, there are only 25 shifts to try, so it is easy to break.

A Caesar cipher hides a message by shifting every letter by the same key.

Curriculum

Where this fits

This lesson is also listed in Grade 7.

The outcomes and strands follow the British Columbia curriculum.