Tool to decrypt/encrypt using masonic cipher. Pigpen cipher (also called masonic cipher or Freemason's cipher) uses a substitution alphabet made of grid parts and dots.

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day! A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Tool to decrypt/encrypt using masonic cipher. Pigpen cipher (also called masonic cipher or Freemason's cipher) uses a substitution alphabet made of grid parts and dots.

Answers to Questions

How to encrypt using PigPen cipher?

Encryption uses 26 symbols to represent each letter of the alphabet by mono-alphabetical substitution. Digits do not have symbols.

Example: DCODE is encrypted

Symbols are created using a 3x3 grid, crosses and dots.

Multiple variants exist for the creation of the alphabet and each changes the association of symbols and letters.

How to decrypt using PigPen cipher?

PigPen decryption consists in replacing each symbol by the corresponding letter.

Example: corresponds to letters D,C,O,D,E

How to recognize PigPen ciphertext?

The ciphered message is made from symbols with right angles which sometime has a dot (1 symbol out of 2 has a dot).

The message has a maximum of 26 distinct characters.

What are the variants of the Freemason's PigPen cipher?

It exists multiple variants for associating symbols and letters.

Recently a variant has been proposed in the video game Assassin's Creed.

The Knight Templars cipher is very similar and has symbols very close.

Why this cipher is named Pig Pen ?

Symbols can be assimilated to pens and dots could be interpreted as small pigs...

When PigPen have been invented?

Probably in the 18th century

Source code

dCode retains ownership of the source code of the script Pigpen Cipher online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online Pigpen Cipher script for offline use on PC, iPhone or Android, ask for price quote on contact page !