Unit 7 · Cybersecurity · Lesson 7.2

Caesar’s Cipher, on Paper

Two thousand years ago, Julius Caesar shifted every letter of his messages by three. Today you build his cipher, use it, and break it in under a minute — and learn the one idea every modern cipher still depends on.

Big Idea 5 — Impact of ComputingCED 5.6 · ciphers by hand first

Before this lesson — read on Runestone

Ten minutes. Read it before class; we start from it. Enrolled in our Runestone course? Open it from there so your progress counts.

1

Where We Are

People→ Bits→ Programs→ Internet→ Security→ Big Data→ Impact

Security. Packets travel across machines you don’t own (Unit 6). The oldest answer to that: make the message unreadable to anyone without the key.

2

The Hook

Read this note. UNEEF KWNIFD NS WTTR YBJQAJ

Two minutes. No key. It’s real English and it’s good news. You’ll be able to read it by the end of section 4.

3

The Idea

Encryption turns a readable message into an unreadable one; decryption turns it back. Four words name what you’re doing:

WordMeaningCaesar example
plaintextthe readable messageHELLO
ciphertextthe scrambled messageKHOOR
cipher (algorithm)the methodshift every letter forward, wrapping Z around to A
keythe secret setting the method usesthe shift: 3
The method is public. The key is the secret. Assume the attacker knows exactly how your cipher works — they usually do. Security comes from the key alone, and from how many keys there are to try.

A Caesar cipher has only 25 useful keys (shifts 1 through 25). An attacker can simply try them all — that’s a brute force attack. With 25 keys it takes a minute by hand. Modern ciphers use keys so long that trying them all would take longer than the age of the universe.

4

Try It — The Wheel and the Cracker

Part 1. Encrypt or decrypt with any shift. Trade a message with a partner.

message:
shift (key):3

Part 2. Someone sent this. You don’t have the key. Try all 25.

ESP VPJ TD FYOPC ESP XLE

Now go back to the hook: the note was shifted by 5.

5

Vocabulary

encryption Security
Encoding data so that only someone with the key can read it.
decryption Security
Turning encrypted data back into readable data, using the key.
plaintext Security
The original, readable message.
ciphertext Security
The encrypted, unreadable version of the message.
cipher Security
The method (algorithm) used to encrypt and decrypt.
key Security
The secret value the cipher uses. Knowing the cipher without the key shouldn’t be enough.
brute force Security
Trying every possible key until one works. Defeated by having too many keys to try.
6

Check

Five questions. Two need a wheel — or your fingers.

0 of 5 answered
7

Impact Check

Secret method, weak security

Companies sometimes advertise “our own secret encryption.” That’s a warning sign, not a feature. A method nobody outside has tested may have holes nobody has found yet. Trusted ciphers are public, studied by experts for years, and still unbroken — because their keys are huge.

8

Connections

Came from 1.4 — letters are numbers. Shifting a letter is adding to its number.
Came from 4.7 — brute force is an exhaustive search. 25 keys is reasonable time; 2256 keys is not.
Next in 7.3 — you code this cipher, and a cracker that tries every key in a blink.
Returns in 7.6 — a password is a key. Key space decides how strong it is.
← 7.1 What Are We Protecting, and From Whom?