AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Caesar and pigpen ciphers

Week 23 · Unit 9: Be a code cracker · 3 lessons
1

Shift the alphabet

Computing 4: Unit 9, pp. 123–137
GoalEncrypt and decrypt short messages with a Caesar cipher by moving every letter a set number of places.
New words
Caesar cipher · a cipher that moves every letter a fixed number of places along the alphabetkey · the number of places each letter is movedsubstitution cipher · a cipher that swaps each letter for a different letter or symbol
Explanation

The Caesar cipher is one of the oldest ways to encrypt a message. It replaces every letter with another letter that is a set number of places further along the alphabet. The set number is the key. With key 3, A becomes D, B becomes E and C becomes F. Spaces stay where they are. It is called a substitution cipher because every letter is substituted by a different one. To decrypt a message, move the same number of places back along the alphabet. The strip shows the plain letters on the top row and the secret letters underneath.

plainsecretADBECFDGEHFIGJHKILJMKNLOMPplainsecretNQORPSQTRUSVTWUXVYWZXAYBZC
Worked examples
plainsecretACBDCEDFEGFHGIHJIKJLKMLNMOplainsecretNPOQPRQSRTSUTVUWVXWYXZYAZB
Encrypt BREAD with key 2. Move each letter two places on: B becomes D, R becomes T, E becomes G, A becomes C and D becomes F. The ciphertext is DTGCF.
Plain textMEETATTEN
CiphertextPHHWDWWHQ
Encrypt MEET AT TEN with key 3. Do every word in turn and keep the spaces: M to P, E to H, E to H, T to W; A to D, T to W; T to W, E to H, N to Q. The ciphertext is PHHW DW WHQ.
plainsecretADBECFDGEHFIGJHKILJMKNLOMPplainsecretNQORPSQTRUSVTWUXVYWZXAYBZC
Decrypt KDYH IXQ, which was made with key 3. Move every letter three places back: K to H, D to A, Y to V, H to E; I to F, X to U, Q to N. The plain text is HAVE FUN. On the strip, find each secret letter in the lower row and read the letter above it.
Class activity

Cipher strips (with a friend): write the alphabet A to Z on a long strip of paper. Write it again on a second strip with the same size letters. Slide the second strip three places to the right so that A sits under D. Use the strips to encrypt a short message of three or four words. Swap with your friend and decrypt each other’s messages by sliding the strips back. Now slide the strip by a different number and try again.

Practice
1
Use the strip to encrypt RIVER with key 1.
plainsecretABBCCDDEEFFGGHHIIJJKKLLMMNplainsecretNOOPPQQRRSSTTUUVVWWXXYYZZA
2
Encrypt PARK TIME with key 4. Keep the space.
3
Decrypt GSSO, which was made with key 4.
plainsecretAEBFCGDHEIFJGKHLIMJNKOLPMQplainsecretNROSPTQURVSWTXUYVZWAXBYCZD
4
What would the ciphertext look like if the key were 0? Is that a good key?