<?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>0xDEADBEEF &#187; cyphers</title>
	<atom:link href="http://deadbeef.psychotomy.net/category/cyphers/feed/" rel="self" type="application/rss+xml" />
	<link>http://deadbeef.psychotomy.net</link>
	<description>Geek Chic?  Or just Geek!</description>
	<lastBuildDate>Sat, 30 Mar 2013 04:06:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Simple Ciphers Demonstrated</title>
		<link>http://deadbeef.psychotomy.net/2008/04/simple-ciphers-demonstrated/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=simple-ciphers-demonstrated</link>
		<comments>http://deadbeef.psychotomy.net/2008/04/simple-ciphers-demonstrated/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 23:14:46 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[cyphers]]></category>
		<category><![CDATA[Demonstration]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=5</guid>
		<description><![CDATA[Here we display the cipher wheel (this was annoyingly hard to make and I&#8217;m not too fond of how it turned out, so on the few occasions that something like this is used again I may move to a line ; but for simple ciphers, this really was the best way to go IMO). It&#8217;s [...]]]></description>
				<content:encoded><![CDATA[<p>Here we display the cipher wheel (this was annoyingly hard to make and I&#8217;m not too fond of how it turned out, so on the few occasions that something like this is used again I may move to a line ; but for simple ciphers, this really was the best way to go IMO). It&#8217;s easy to see how to convert a letter: simply find the letter on the outer ring, and write the letter from the inner ring.</p>
<p>For this example, we will encode the title of this post.</p>
<blockquote><p>The first is “ROT-13 encoding,” which despite it’s name isn’t really an encoding. ROT-13 substitutes each letter with the letter 13 away (half an alphabet), which eliminates the need to define a direction in the shift. A becomes M, M becomes A. D becomes P, P becomes D.</p></blockquote>
<p><a href='http://deadbeef.psychotomy.net/?attachment_id=7' rel="attachment wp-att-7"><img src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/04/enc1_rot13-150x150.png" alt="Simple Cyphers ROT13" title="enc1_rot13" width="150" height="150" class="alignnone size-thumbnail wp-image-7" /></a></p>
<p>S transliterates to F, i&lt;=&gt;v, m&lt;=&gt;z,p&lt;=&gt;c, l&lt;=&gt;y,e&lt;=&gt;r.  Thus Simple becomes Fvzcyr</p>
<blockquote><p>Simple Ciphers Demonstrated<br />
Fvzcyr Pvcuref Qrzbafgengrq</p></blockquote>
<p>ROT 13 is convenient in that the cipher wheel can really be written with only half the wheel, since all mappings are bi-directional. S becomes an F and an F becomes an S. This also makes deciphering the message simple since, technically, you can simply re-cipher the text and it will revert to the original plaintext</p>
<blockquote><p>Second is a “Rotation Cipher,” more commonly known as a “Caesar Cipher,” which is actually a more general version of ROT-13. A Rotation Cipher would generally be named with a direction and a number. ROT Right 5, or ROT-L-9. ROT-13 is a special case because L and R would be identical (26 letters, 13 is halfway around, either direction). Rotation Ciphers are frequently put on “secret decoder rings.”</p></blockquote>
<p><a href='http://deadbeef.psychotomy.net/?attachment_id=8' rel="attachment wp-att-8"><img src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/04/enc1_r5-150x150.png" alt="Cimple Ciphers Rotate Right 5" title="enc1_r5" width="150" height="150" class="alignnone size-thumbnail wp-image-8" /></a></p>
<p>In this instance we have S mapping to N, I to D, M to H, P to K, L to G, and E to Z.  Simple becomes NDHKGZ</p>
<blockquote><p>Simple Ciphers Demonstratred<br />
Ndhkgz Xdkczmn Ynhjinomvomny</p></blockquote>
<p>Rotate Right 5 is somewhat more complicated than ROT13, simply because the mappings are not bi-directional. However, given the S to N mapping, it is possible to deduce the full cipher. In fact, that is how I ciphered the &#8220;Ciphers Demonstrated&#8221; portion. C is two letters before E. E was Z, thus C is X. I was in Simple, as was P. H is immeditely before I, e occurs in both, R is one less than S, S appears in both. Thus only three letters needed to be &#8220;deduced&#8221; for enciphering &#8220;Ciphers&#8221;, and none was more than two letters off of a letter we had already. The same holds true for &#8220;Demonstrated&#8221;</p>
<blockquote><p>The third is the generic case of “substitution cipher.” In this instance, A may be mapped to X and then B to C, there is no relation between mappings. This can either be a 13-letter table (where, then, X would map to A and C to B) or a full 26 (C may map to A, and X would become I).</p></blockquote>
<p><a href='http://deadbeef.psychotomy.net/?attachment_id=6' rel="attachment wp-att-6"><img src="http://deadbeef-aws.psychotomy.net/wp-content/uploads/2008/04/enc1_rnd-150x150.png" alt="Simple Ciphers, Randomize" title="enc1_rnd" width="150" height="150" class="alignnone size-thumbnail wp-image-6" /></a><br />
S maps to E.  I maps to M, M maps to Z and NOT I.  P maps to Y.  L to K, and E to G.  Simple maps to Emzykg.</p>
<blockquote><p>Simple Ciphers Demonstrated<br />
Emzykg Amyugse Ogzhrevsxvgo</p></blockquote>
<p>I made a note that M mapped to Z and not I. The process of enciphering this text could be made &#8220;easier&#8221; by making any given cipher pair a bidirectional pairing. I to M and M to I. But that also simplifies the algorithm and makes it simpler for an &#8220;attacker&#8221; to &#8220;crack&#8221; the &#8220;code&#8221;. (I put those words in quotes because, honestly, there&#8217;s not much code to crack in this instance)</p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2008/04/simple-ciphers-demonstrated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Ciphers</title>
		<link>http://deadbeef.psychotomy.net/2008/04/simple-ciphers/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=simple-ciphers</link>
		<comments>http://deadbeef.psychotomy.net/2008/04/simple-ciphers/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 23:03:39 +0000</pubDate>
		<dc:creator>attriel</dc:creator>
				<category><![CDATA[cyphers]]></category>
		<category><![CDATA[Descriptions]]></category>

		<guid isPermaLink="false">http://deadbeef.psychotomy.net/?p=4</guid>
		<description><![CDATA[A simple cipher substitutes one letter for another, one-to-one generally. Technically &#8216;simple ciphers&#8217; covers three common setups, but as they are fundamentally the same, I&#8217;m including both. The first is &#8220;ROT-13 encoding,&#8221; which despite it&#8217;s name isn&#8217;t really an encoding. ROT-13 substitutes each letter with the letter 13 away (half an alphabet), which eliminates the [...]]]></description>
				<content:encoded><![CDATA[<p>A simple cipher substitutes one letter for another, one-to-one generally. Technically &#8216;simple ciphers&#8217; covers three common setups, but as they are fundamentally the same, I&#8217;m including both.</p>
<p>The first is &#8220;ROT-13 encoding,&#8221; which despite it&#8217;s name isn&#8217;t really an encoding. ROT-13 substitutes each letter with the letter 13 away (half an alphabet), which eliminates the need to define a direction in the shift. A becomes M, M becomes A. D becomes P, P becomes D.</p>
<p>Second is a &#8220;Rotation Cipher,&#8221; more commonly known as a &#8220;Caesar Cipher,&#8221; which is actually a more general version of ROT-13. A Rotation Cipher would generally be named with a direction and a number. ROT Right 5, or ROT-L-9. ROT-13 is a special case because L and R would be identical (26 letters, 13 is halfway around, either direction). Rotation Ciphers are frequently put on &#8220;secret decoder rings.&#8221;</p>
<p>The third is the generic case of &#8220;substitution cipher.&#8221; In this instance, A may be mapped to X and then B to C, there is no relation between mappings. This can either be a 13-letter table (where, then, X would map to A and C to B) or a full 26 (C may map to A, and X would become I).</p>
<p>In terms of data security, none of these is any good. These are more useful for either pre-coding a message for actual encoding or encryption, or for passing insecure data. There are ways to complicate these techniques (which I will work up separately), which make them more secure.</p>
<p>The basic use for a Simple Cipher is to make data require some level of work to read (to slow someone down), and to make for ready manual processing. With the &#8220;decoder ring&#8221;, anyone can easily tick through an arbitrarily long message with a consistent time per letter, and a consistent process.</p>
<p>(This is a post I&#8217;m migrating from the first edition of this blog)</p>
]]></content:encoded>
			<wfw:commentRss>http://deadbeef.psychotomy.net/2008/04/simple-ciphers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
