Exhibit 32 of 140 18th Century Broken

Pigpen Cipher

The Freemason cipher — symbols instead of letters, used for centuries in secret societies

InventorFreemasons (popularized) · Earlier origins unknown
Year~1700s
Key TypeFixed symbol-to-letter grid
Broken BySymbol frequency analysis · Pattern recognition
Modern LessonVisual encoding as cryptography

Why This Matters

The Pigpen cipher — used by Freemasons from at least the 18th century — is one of the most widely recognized symbol ciphers in history. It demonstrates that substituting symbols for letters provides no additional security over substituting other letters.

Historical Context

The Pigpen (or Masonic) cipher uses geometric symbols derived from two grids and two X patterns to represent the 26 letters of the alphabet. It was used by Freemasons from at least the 18th century for lodge records and correspondence. George Washington's Freemason brothers used it; examples appear in gravestone inscriptions and historical documents across the English-speaking world.

The cipher is a simple monoalphabetic substitution using symbols instead of letters — cryptographically equivalent to Caesar or any other fixed letter-to-symbol mapping, and breakable by the same frequency analysis.

How It Works
The grid layouts:

 A │ B │ C     J │ K │ L
───┼───┼───   ───┼───┼───
 D │ E │ F     M │ N │ O   (dotted versions)
───┼───┼───   ───┼───┼───
 G │ H │ I     P │ Q │ R

S = ╲   T = ╳   U = ╱      (X shapes)
V = ╲•  W = ╳•  X = ╱•     (dotted X)
Y = ▽   Z = △              (chevrons)

The symbol for a letter is the set of grid lines
that enclose its cell — nothing more:
A = top-left cell    → line on the right, line below
E = centre cell      → all four sides: a closed box
H = bottom-middle    → left, top and right: open below
I = bottom-right     → line above, line to the left
...etc — a dot marks the second grid (J–R)

(The demo above prints single text characters as
stand-ins, because plain text has no glyphs for
most of these shapes. The diagram below shows the
authentic drawn forms.)

Famous users:
- Freemasons (lodge records)
- George Washington
- Civil War soldiers (personal letters)
Grid 1 ABC DEF GHI Grid 2 (dotted) JKL MNO PQR S–Z STU VWX YZ Grid 1 — each glyph is the boundary of that letter's cell ABC DEF GHI Grid 2 (J–R) — the same nine shapes, each with a dot JNR A is open to the top and left; I is open to the bottom and right. Corner glyphs are never interchangeable — that is the whole key.
Pigpen cipher: A–I from the plain grid, J–R from the dotted grid, S–U from the diagonals, V–X their dotted forms, Y–Z the chevrons. Each glyph is drawn as the lines that enclose its cell, so the corner letters (A, C, G, I) each open toward a different corner of the page.
How It Was Broken
Symbol Frequency Analysis
Complexity: Trivial

The Pigpen cipher is a monoalphabetic substitution cipher using symbols instead of letters. Al-Kindi's 850 AD frequency analysis applies directly: count how often each symbol appears, match the most common symbol to E, work through the frequency table, and the alphabet mapping is recovered in minutes. Modern word pattern analysis makes it even faster.

What It Teaches Modern Cryptography
Concept from Pigpen CipherModern Evolution
Symbol substitutionVisual encoding: QR codes, barcodes use symbol-to-data mapping
Fixed symbol gridCharacter encoding standards: ASCII, Unicode map characters to numbers
Secret society useNeed-to-know access control: modern cryptography enforces this mathematically
Quick Facts
Exhibit32 of 140
Era18th Century
SecurityBroken
InventorFreemasons (popularized) · Earlier origins unknown
Year~1700s
Key TypeFixed symbol-to-letter grid
Broken BySymbol frequency analysis · Pattern recognition
← Previous Bacon's Cipher