Freemasons have used ciphers since at least the 18th century. The Freemason’s Cipher is sometimes called the Pigpen Cipher, because the alphabet is written into a grid of lines, which may look like pigpens, and a cross shape from two diagonal lines. A letter is enciphered by drawing the shape of the cell that encompasses it. Freemasons learned one of the many versions of this cipher as part of the Royal Arch initiation.
Here are the main reasons Freemasons use ciphers:
To keep their ritual ceremonies secure so they aren’t easily discovered by the unitiated
To keep messages about Masonic business (like “lodge officers meet one half-hour before the meeting of the full lodge”) just among Masons
To have fun, plain and simple
The Grand Lodge style of Freemasonry began in 1717 in London, England, and spread to France in fewer than ten years. In France, Freemasons experimented with the development of so-called high degrees, ritual initiation ceremonies that somehow went beyond the first three degrees of Freemasonry.
These high degree ceremonies were plays that enhanced a Mason’s experience and interaction with the legends, for example, of the Temple built by King Solomon. Some believe that the French invented a degree called the Royal Arch, as a kind of completion (keystone) of the third or Master Mason degree.
However the Royal Arch was developed — and early Masonic records are notoriously incomplete — history suggests that the Royal Arch degree was being conferred in London in the 1740s. When it comes down to it, the Freemason’s Cipher (in any version) is a straight substitution cipher, so you can solve it by substituting a letter for each symbol.