Crypto Corner
  • Home
    • Crypto Corner Challenges
    • Glossary
    • Help with Activities
    • Educational Uses
    • Downloadable Resources
  • Introduction to Cryptography
    • Steganography
    • Codes and Ciphers
    • Conventions in Cryptography
  • Monoalphabetic Substitution Ciphers
    • Atbash Cipher
    • Pigpen Cipher
    • Caesar Shift Cipher
    • Affine Cipher
    • Mixed Alphabet Cipher
    • Other Examples
    • Frequency Analysis: Breaking the Code
    • Homophonic Substitution
  • Simple Transposition Ciphers
    • Rail Fence Cipher
    • Route Cipher
    • Columnar Transposition Cipher
    • Myszkowski Transposition Cipher
    • Permutation Cipher
    • Anagramming: Jumbling words
    • Combining Monoalphabetic and Simple Transposition Ciphers
  • Polyalphabetic Substitution Ciphers
    • Vigenère Cipher
    • Kasiski Analysis: Breaking the Code
    • Autokey Cipher
    • Other Examples
  • Fractionating Ciphers
    • Polybius Square
    • Straddling Checkerboard
    • Transposing Fractionated Text
    • Other ways to Alter Fractionated Text
  • Digraph Substitution Ciphers
    • Playfair Cipher
    • Two-Square Cipher
    • Four-Square Cipher
    • Hill Cipher

Pigpen Cipher

  1. Cipher Activity
  2. Introduction
  3. Encryption
  4. Decryption
  5. Discussion
  6. Exercise

Alphabet:




Plaintext:

Ciphertext:

Decipher Tool:
Options:

The Pigpen Cipher is another example of a substitution cipher, but rather than replacing each letter with another letter, the letters are replaced by symbols. The cipher has an interesting history: although its true origins are unknown, it has been used by many groups. Most notoriously, it was the cipher of choice for use by the Freemasons, a secret society in the 18th Century. In fact, they used it so much, that it is often referred to as the Freemasons Cipher. However, it was not exclusively used by them, with Union prisoners in Confederate camps using it to communicate in the American Civil War.
Encryption
The encryption process is fairly straightforward, replacing each occurence of a letter with the designated symbol. The symbols are assigned to the letters using the key shown below, where the letter shown is replaced by the part of the image in which it is located.
Picture
The key to the Pigpen Cipher is this easy to remember grid system. Letters are represented by the part of the grid they are in.
Picture
represents "A"
Picture
represents "M"
Picture
represents "T"
Picture
represents "W"
Decryption
The decryption process is just the reverse of the encryption process. Using the same key (the grid above), you locate the image depicted in the ciphertext, and replace it with the letter given by that part of the grid.
Discussion
The Pigpen Cipher was used by the Freemasons in many aspects of their lives, and one of the most common still seen today is on gravestones. Below is an image of a gravestone which clearly contains the use of the Pigpen Cipher.
Picture
A grave with Pigpen cipher symbols on.
Picture
A close up of the grave to the left, showing clearly the use of symbols.
Notice that at the top of the gravestone, there is the symbol of a pair of compasses, one of the symbols of the Freemasons. The inscription appears to read "Thomas Brierley made his ingress July 16th 1785", which is thought to mean that he joined the Freemasons on this date.
There are many possible variation of the Pigpen Cipher (even in the example above, the symbol for "s" is not standard). The most common variants include changing the order from grid, grid, X, X to grid, X, grid, X (as shown below) or even placing the letters alternately into the grids (as used in the game "Assassin's Creed II").
Picture
This variant uses a Grid, X, Grid, X layout to position the letters.
Picture
This variant places the letters alternately in the dot and non-dot parts to split adjacent letters.
One final method for changing the Pigpen Cipher slightly is to use three grids, and using either a full stop, or space, to occupy the last position. An example of this is given below.
Picture
Another variant, using three grids this time. There is a final symbol, which can be used for spaces or full stops
Questions
Use the standard Pigpen Cipher to decrypt these mathematical words.
Picture
Picture

Previous Page: Atbash Cipher
Next Page: Shift Cipher
Information
  • About Me
  • Contact Me
  • Legal
  • Glossary
  • Help with Activities
  • Educational Uses
  • Downloadble Resources
Crypto Corner is a subsiduary of www.interactive-maths.com
©2013 - 2019 Daniel Rodriguez-Clark
All rights reserved
If you have found Crypto Corner useful, then please help to keep it a free site by donating using the button below. Thanks!
  • Home
    • Crypto Corner Challenges
    • Glossary
    • Help with Activities
    • Educational Uses
    • Downloadable Resources
  • Introduction to Cryptography
    • Steganography
    • Codes and Ciphers
    • Conventions in Cryptography
  • Monoalphabetic Substitution Ciphers
    • Atbash Cipher
    • Pigpen Cipher
    • Caesar Shift Cipher
    • Affine Cipher
    • Mixed Alphabet Cipher
    • Other Examples
    • Frequency Analysis: Breaking the Code
    • Homophonic Substitution
  • Simple Transposition Ciphers
    • Rail Fence Cipher
    • Route Cipher
    • Columnar Transposition Cipher
    • Myszkowski Transposition Cipher
    • Permutation Cipher
    • Anagramming: Jumbling words
    • Combining Monoalphabetic and Simple Transposition Ciphers
  • Polyalphabetic Substitution Ciphers
    • Vigenère Cipher
    • Kasiski Analysis: Breaking the Code
    • Autokey Cipher
    • Other Examples
  • Fractionating Ciphers
    • Polybius Square
    • Straddling Checkerboard
    • Transposing Fractionated Text
    • Other ways to Alter Fractionated Text
  • Digraph Substitution Ciphers
    • Playfair Cipher
    • Two-Square Cipher
    • Four-Square Cipher
    • Hill Cipher