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
3

Pigpen picture code

Computing 4: Unit 9, pp. 123–137
GoalEncrypt and decrypt with the pigpen cipher, compare it with the Caesar cipher and invent a cipher of your own.
New words
pigpen cipher · a substitution cipher that swaps every letter for a symbol made of lines and dotssymbol · a simple picture that stands for a letterpigpen key · the drawing that shows which symbol belongs to each letter
Explanation

The pigpen cipher also swaps letters, but it uses symbols and not letters. The key is a drawing of two grids (two lines across and two lines down) and two X shapes. Each letter sits in a space in one of the drawings. Its symbol is the lines around that space. The first grid holds A to I, from left to right and from top to bottom. The table shows each letter of the first grid with its symbol. The second grid holds J to R and has a dot in every symbol. The two X shapes hold S, T, U, V and W, X, Y, Z. The second X shape has dots. To decrypt, find the symbol in the key and read the letter.

First gridleftmiddleright
top rowA ┘B ⊔C └
middle rowD ⊐E □F ⊏
bottom rowG ┐H ⊓I ┌
Worked examples
Second gridleftmiddleright
top rowJ ┘ + dotK ⊔ + dotL └ + dot
middle rowM ⊐ + dotN □ + dotO ⊏ + dot
bottom rowP ┐ + dotQ ⊓ + dotR ┌ + dot
Letters J to R use the same nine shapes as A to I, with a dot added. J is the shape of A with a dot. K has the shape of B with a dot, and so on, in the same order.
Space in the XFirst XSecond X (with a dot)
topS ∨W ∨ + dot
leftT >X > + dot
bottomU ∧Y ∧ + dot
rightV <Z < + dot
The X shapes hold four letters each. The four symbols are read in this order: the top, the left, the bottom and the right. The first X shape holds S, T, U and V. The second X shape holds W, X, Y and Z, and its symbols have a dot.
Encrypt SWIM. S is the top shape of the first X. W is the top shape of the second X, with a dot. I has lines at the top and on the left. M has lines at the top, on the right and at the bottom, and a dot. Each letter turns into one symbol.
Class activity

Make your own cipher (in pairs): invent a code in which every letter becomes a shape, a colour, a number or a small drawing. Write the key on one sheet of paper and keep it hidden. Write a message and send it to your partner without the key. Can they read it? Now give them the key. How much easier was it? How could someone crack your cipher? Write down one way to make it harder to crack.

Practice
1
Decrypt this pigpen word. Use the key in the lesson.
2
Describe the pigpen symbols for the word TAP.
3
Decrypt this pigpen word.
4
Give one way in which the Caesar cipher and the pigpen cipher are the same, and one way in which they are different.