What is a cipher?
Name ______________ Date ____________
A cipher is a way to hide a message. You change each letter by a rule. The rule is the key. Anyone with the key can read the message. The number code below gives each letter its place in the alphabet.
| Letter | Number | Letter | Number | Letter | Number |
|---|---|---|---|---|---|
| A | 1 | J | 10 | S | 19 |
| B | 2 | K | 11 | T | 20 |
| C | 3 | L | 12 | U | 21 |
| D | 4 | M | 13 | V | 22 |
| E | 5 | N | 14 | W | 23 |
| F | 6 | O | 15 | X | 24 |
| G | 7 | P | 16 | Y | 25 |
| H | 8 | Q | 17 | Z | 26 |
| I | 9 | R | 18 |
Ciphers: Warm-up
Warm-up: number codes and shifts
- Use the number code (A is 1, B is 2 and so on). What word is 3 1 20? Answer: cat (also: CAT)
- Use the number code. What word is 4 15 7? Answer: dog (also: DOG)
- Use the number code. Which word is 8 5 1 4?a) HEALb) HEADc) HERD Answer: HEAD
- In the number code, the word BED has the numbers 2, 5 and 4. What do they add up to? Answer: 11
- In a shift-1 code, each real letter moves one step forward, so A becomes B. The coded word is NBQ. What is the real word? Answer: map (also: MAP)
- True or false: in a shift-1 code, the alphabet wraps around, so Z becomes A.TrueFalse Answer: true
Ciphers: Stretch
A shift-3 code moves each letter three steps forward, so A becomes D. The key is below. To decode, go back three steps.
| Real | Code | Real | Code | Real | Code |
|---|---|---|---|---|---|
| A | D | J | M | S | V |
| B | E | K | N | T | W |
| C | F | L | O | U | X |
| D | G | M | P | V | Y |
| E | H | N | Q | W | Z |
| F | I | O | R | X | A |
| G | J | P | S | Y | B |
| H | K | Q | T | Z | C |
| I | L | R | U |
Stretch: decode and encode
- Decode this shift-3 word: VNB. Answer: sky (also: SKY)
- Use the key. Write the word BOX in shift-3 code. Answer: ERA (also: era)
- Decode this shift-3 word: SODQHW. Answer: planet (also: PLANET)
- A backward code writes the letters in reverse order. What is the real word for GNIRPS? Answer: spring (also: SPRING)
- A swap code swaps each pair of letters: the first with the second, the third with the fourth, and so on. What is the real word for UPZZEL? Answer: puzzle (also: PUZZLE)
- Which one is the word LAMP in shift-3 code?a) IXJMb) MBNQc) ODPS Answer: ODPS
- In shift-3 code, the coded letter C stands for which real letter? The alphabet wraps around. Answer: Z (also: z)
Ciphers: Reach
A mirror code swaps A with Z, B with Y, C with X and so on, so the alphabet is flipped. A shift code can use any number of steps.
Reach: find the rule
- In a mirror code, the word LIGHT is written ORTSG. What real word is the mirror code NLLM? Answer: moon (also: MOON)
- The real word CAT becomes ECV in a shift code. How many steps forward is the shift? Answer: 2
- A shift code turns a real word into KHOOR. The first real letter is H. What is the real word? Answer: hello (also: HELLO)
- A word is coded with a shift of 2 and then coded again with a shift of 3. What single shift gives the same result? Answer: 5
- Shifting 26 steps gives back the same message. A message is shifted 29 steps. What shift from 1 to 25 steps gives the same result? Answer: 3
- True or false: a message in a shift code can always be broken by trying all 25 shifts.TrueFalse Answer: true