Class Notes: Pigpen Cipher

Cybersecurity | Introduction to Ciphers and Encryption

Student Note: The Pigpen Cipher is a simple way to hide a message by replacing letters with symbols. It is fun to learn and useful for understanding substitution ciphers, but it is not secure enough for real cybersecurity.

1. What Is the Pigpen Cipher?

The Pigpen Cipher is a type of substitution cipher.

A substitution cipher replaces each letter with something else. In the Pigpen Cipher, each letter of the alphabet is replaced with a symbol made from lines and dots.

Example:
Instead of writing:
HELLO
You would write symbols that represent H, E, L, L, and O.

2. Why Is It Called Pigpen?

The cipher gets its name because the alphabet is placed inside grid shapes that look like small pens or boxes.

These boxes look a little like animal pens, which is where the name Pigpen Cipher comes from.

3. How the Pigpen Cipher Works

The Pigpen Cipher uses two main grid patterns and two X-shaped patterns. Some letters use dots to show that they come from the second version of the pattern.

Grid 1: No Dots

A | B | C --------- D | E | F --------- G | H | I

Letters A through I are represented by the shape of the box around each letter.

Grid 2: With Dots

J | K | L --------- M | N | O --------- P | Q | R

Letters J through R use the same box shapes as A through I, but they include a dot.

X-Shaped Grid 1: No Dots

S T U V

Letters S, T, U, and V are placed in an X-shaped pattern.

X-Shaped Grid 2: With Dots

W X Y Z

Letters W, X, Y, and Z use the same X-shaped pattern, but they include a dot.

4. Example

Plaintext means the original readable message.

Plaintext:
CAT

Using the Pigpen Cipher:

  • C = symbol from the first grid
  • A = symbol from the first grid
  • T = symbol from the first X-shaped grid

The message becomes symbols instead of letters.

5. Encryption and Decryption

Encryption

Encryption means turning a readable message into a hidden message.

Plaintext:
HELLO
Ciphertext: Pigpen symbols

Decryption

Decryption means turning the hidden message back into readable text.

To decrypt a Pigpen message, match each symbol back to its letter using the Pigpen Cipher key.

6. Key Vocabulary

Term Meaning
Plaintext The original readable message
Ciphertext The hidden or encrypted message
Cipher A method used to hide information
Substitution Cipher A cipher that replaces one letter or symbol with another
Encryption Changing plaintext into ciphertext
Decryption Changing ciphertext back into plaintext
Key The pattern or chart used to encrypt and decrypt

7. Why Pigpen Cipher Is Important

The Pigpen Cipher helps students understand important cybersecurity ideas.

8. Is Pigpen Cipher Secure?

Important: The Pigpen Cipher is not secure by modern cybersecurity standards.

It is weak because:

For example, in English, the letter E is very common. If one Pigpen symbol appears many times, it might represent E.

9. Pigpen Cipher in Cybersecurity

Pigpen Cipher is useful for learning the basics of encryption, but real cybersecurity uses much stronger methods.

Modern encryption helps protect:

Pigpen Cipher is more like a classroom puzzle than a real security tool.

10. Practice Activity

Directions

Use the Pigpen Cipher key to encrypt the following words:

DOG
CAT
CODE
CYBER
SECRET

Then trade with a partner and try to decrypt each other’s messages.

11. Review Questions

  1. What type of cipher is the Pigpen Cipher?
  2. What does encryption mean?
  3. What does decryption mean?
  4. Why does the Pigpen Cipher use dots?
  5. Why is the Pigpen Cipher not secure for real cybersecurity?
  6. How is Pigpen Cipher different from a Caesar Cipher?
  7. What is the purpose of a cipher key?

12. Summary

The Pigpen Cipher is a simple substitution cipher that replaces letters with symbols. It is easy to use and fun for learning about encryption.

However, it is not strong enough to protect real information because the pattern is easy to recognize and decode.

```