<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Haiders WebSpace &#187; Symmetric Encryption</title>
	<atom:link href="http://blog.creativeitp.com/tag/symmetric-encryption/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.creativeitp.com</link>
	<description>Let&#039;s talk about IT</description>
	<lastBuildDate>Sat, 27 Feb 2010 13:15:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The pigpen cipher aka Masonic cipher</title>
		<link>http://blog.creativeitp.com/posts-and-articles/cryptography/the-pigpen-cipher-aka-masonic-cipher/</link>
		<comments>http://blog.creativeitp.com/posts-and-articles/cryptography/the-pigpen-cipher-aka-masonic-cipher/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 08:16:17 +0000</pubDate>
		<dc:creator>Haider al-Khateeb</dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Symmetric Encryption]]></category>

		<guid isPermaLink="false">http://blog.creativeitp.com/?p=44</guid>
		<description><![CDATA[Have you seen a code similar to this before? An interesting example from real life is the stone of James Leeson, who died in 1792. For a long time, the box-and-dot code at the top of the stone (Figure 1) remained a mystery for the public, but the secret was revealed as Meyer Berger explained [...]]]></description>
			<content:encoded><![CDATA[</p>
<p><img src="http://blog.creativeitp.com/wp-content/uploads/2010/01/pigpen3.gif" border="0" /></p>
<p>Have you seen a code similar to this before?</p>
<p>An interesting example from real life is the stone of James Leeson, who died in 1792. For a long time, the box-and-dot code at the top of the stone (Figure 1) remained a mystery for the public, but the secret was revealed as Meyer Berger explained in his NY Times column in the 1950s, it was finally decrypted. It says: &#8220;Remember death&#8221;. It was a Masonic cipher.</p>
</p>
<div id="attachment_38" class="wp-caption aligncenter" style="width: 294px"><img src="http://blog.creativeitp.com/wp-content/uploads/2010/01/pigpen-f1.jpg" alt="" title="pigpen-f1" width="284" height="214" class="size-full wp-image-38" /><p class="wp-caption-text">Figure 1: Stone of James Leeson 1</p></div>
<p><span id="more-44"></span></p>
<p>The pigpen cipher or the Masonic/Freemason&#8217;s cipher is a simple encryption scheme used in the 16th century to secure correspondence between the Freemasons members. [2][3]</p>
</p>
<p>The cipher is created by replacing each letter of the alphabet with a symbol, therefore it is defined nowadays as a simple substitution cipher.</p>
</p>
<p>Symbols used in pigpen are created by drawing a grid like the one in Figure 2.</p>
</p>
<div id="attachment_39" class="wp-caption aligncenter" style="width: 222px"><img src="http://blog.creativeitp.com/wp-content/uploads/2010/01/pigpen-f2.gif" alt="" title="pigpen-f2" width="212" height="212" class="size-full wp-image-39" /><p class="wp-caption-text">Figure 2: A typical example for a pigpen cipher key.</p></div>
<p>Based on the key (grid) in Figure 2</p>
<p><img src="http://blog.creativeitp.com/wp-content/uploads/2010/01/pigpen1.gif" border="0" /></p>
<p>A sentence like &#8220;FREE WORLD&#8221; can be encrypted to be:</p>
<p><img src="http://blog.creativeitp.com/wp-content/uploads/2010/01/pigpen2.gif" border="0" /></p>
<table style="height: 166px; background-color: #f0f0f0;" border="0" width="515">
<tbody>
<tr>
<td>
<p><strong>Fun exercise:</strong></p>
<p><strong><span style="color: #ff0000;">Question:</span></strong> Who was behind the invention of the frequency analysis technique for breaking monoalphabetic substitution ciphers?</p>
<p><strong><span style="color: #008000;">Answer:</span></strong></p>
<p><img src="http://blog.creativeitp.com/wp-content/uploads/2010/01/pigpen3.gif" border="0" /></p>
<p>(decrypt to find out)</p>
</td>
</tr>
</tbody>
</table>
<p></b></p>
<p><span style="color: #008000;"><strong> </strong></span></p>
<p>To enhance security, let us choose a key such as &#8220;PEACE&#8221; and put it into the grid, Figure 3:</p>
<div id="attachment_40" class="wp-caption aligncenter" style="width: 222px"><img src="http://blog.creativeitp.com/wp-content/uploads/2010/01/pigpen-f3.gif" alt="" title="pigpen-f3" width="212" height="212" class="size-full wp-image-40" /><p class="wp-caption-text">Figure 3</p></div>
<p>I excluded the last &#8220;E&#8221; in &#8220;PEACE&#8221; because no letter should be written twice. Now let’s fill in the rest of the letters and have our personalized grid</p>
</p>
<div id="attachment_41" class="wp-caption aligncenter" style="width: 222px"><img src="http://blog.creativeitp.com/wp-content/uploads/2010/01/pigpen-f4.gif" alt="" title="pigpen-f4" width="212" height="212" class="size-full wp-image-41" /><p class="wp-caption-text">Figure 4</p></div>
<p>Although we can change the grid every time we use a different keyword, this encryption scheme is not secure as it used to be at its time, because the use of symbols is no impediment to modern cryptanalysis techniques.</p>
<p>At the end of this article, here is a gift for you:</p>
</p>
<p>Right Click on Figure 5 and choose <em>Save Target As</em> to download a Masonic Cipher &amp; Symbols Font for your MS Word, so you could write the symbols easily and have fun with your friends.</p>
</p>
</p>
<div id="attachment_42" class="wp-caption aligncenter" style="width: 230px"><a href="http://blog.creativeitp.com/wp-content/uploads/2010/01/fam-code.zip"><img src="http://blog.creativeitp.com/wp-content/uploads/2010/01/pigpen-f5.gif" alt="" title="pigpen-f5" width="220" height="194" class="size-full wp-image-42" /></a><p class="wp-caption-text">Figure 5: Masonic Cipher &amp; Symbols Font (4)</p></div>
<p>To install the font file Right Click on it and select Install or simply move it to your C:\Windows\Fonts folder.</p>
</p>
<p><strong>References:</strong></p>
<p>[1] http://www.forgotten-ny.com/forgottentour17/tour17.html <br />[2] David Kahn, &#8220;The Codebreakers. The Story of Secret Writing.&#8221; Macmillan, 1967. <br />[3] David E. Newton, &#8220;Freemason&#8217;s Cipher&#8221; in Encyclopedia of Cryptology, 1998.<br />[4] FAM-Code© http://www.odr.org/anonymous/fam-code.htm</p>
</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creativeitp.com/posts-and-articles/cryptography/the-pigpen-cipher-aka-masonic-cipher/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
