This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/7842/. Also, please do not modify any references to the original work (if any) contained in this content.
The pigpen cipher (alternately referred to as the masonic cipher, Freemason's cipher, Napoleon cipher, and tic-tac-toe cipher) is a geometric simple substitution cipher, which exchanges letters for symbols which are fragments of a grid1.
You can get the idea by looking at the cipher key below.
With this key, an example enciphered message would look like this:
However, the key above gives just one variant of how the letters can be assigned to the grid. There are other variants. For example, a different variant of the cipher key was used in Assassin's Creed II game - letters were paired, e.g., AB, CD, etc., and the symbol with the dot was substituted for the second letter in the pair. Other variants may include starting the grid with the initial word, e.g., MASON, then using all remaining letters in order.
That's why I've created more or less universal pigpen cipher decoder. The idea is to let you add other variants of the key and use them for deciphering. I've added the one used in Wikipedia and the one used in Assassin's Creed II.
Any registered user of this site can add a new handbook item following this link.
To set up your cipher, you need to fill the letter positions with letters, according to the following order:
Also, you need to provide a picture of the key for convenience; the image's size should be 240x240.