<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Caesar cipher</title>
	<atom:link href="http://www.needcodefor.com/php/caesar-cipher/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.needcodefor.com/php/caesar-cipher/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=caesar-cipher</link>
	<description>Code for developers in need</description>
	<lastBuildDate>Wed, 25 Jan 2012 22:29:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Robert</title>
		<link>http://www.needcodefor.com/php/caesar-cipher/comment-page-1/#comment-13294</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Wed, 25 Jan 2012 22:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.needcodefor.com/?p=268#comment-13294</guid>
		<description>Mihaela,

I wrote a simple &lt;a href=&quot;http://www.xarg.org/tools/caesar-cipher/&quot; rel=&quot;nofollow&quot;&gt;decryption tool&lt;/a&gt; using heuristics in order to guess Caesar-Cipher keys. It also finds the correct answer to your &quot;KDLOFDHVDUZHZKRDUHDERXWWRGLHVDOXWHBRX&quot;.

Robert</description>
		<content:encoded><![CDATA[<p>Mihaela,</p>
<p>I wrote a simple <a href="http://www.xarg.org/tools/caesar-cipher/" rel="nofollow">decryption tool</a> using heuristics in order to guess Caesar-Cipher keys. It also finds the correct answer to your &#8220;KDLOFDHVDUZHZKRDUHDERXWWRGLHVDOXWHBRX&#8221;.</p>
<p>Robert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liss</title>
		<link>http://www.needcodefor.com/php/caesar-cipher/comment-page-1/#comment-7401</link>
		<dc:creator>Liss</dc:creator>
		<pubDate>Thu, 01 Sep 2011 09:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.needcodefor.com/?p=268#comment-7401</guid>
		<description>Great post, I wrote a Ceaser Cipher also in PHP in a totally different way, it was really inefficient, and kind of crap, yours is great though :) x</description>
		<content:encoded><![CDATA[<p>Great post, I wrote a Ceaser Cipher also in PHP in a totally different way, it was really inefficient, and kind of crap, yours is great though <img src='http://www.needcodefor.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  x</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vigenere cipher &#124; Need code for ...</title>
		<link>http://www.needcodefor.com/php/caesar-cipher/comment-page-1/#comment-37</link>
		<dc:creator>Vigenere cipher &#124; Need code for ...</dc:creator>
		<pubDate>Wed, 07 Jul 2010 11:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.needcodefor.com/?p=268#comment-37</guid>
		<description>[...] cipher is an encryption technique consisting of a sequence of Caesar cipher each based on the letters of a secret text called a keyword. This mechanism is classified as [...]</description>
		<content:encoded><![CDATA[<p>[...] cipher is an encryption technique consisting of a sequence of Caesar cipher each based on the letters of a secret text called a keyword. This mechanism is classified as [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihaela</title>
		<link>http://www.needcodefor.com/php/caesar-cipher/comment-page-1/#comment-30</link>
		<dc:creator>Mihaela</dc:creator>
		<pubDate>Tue, 06 Jul 2010 11:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.needcodefor.com/?p=268#comment-30</guid>
		<description>The key to my encryption was 3, every letter of my initial text was shifted 3 positions.
To decrypt the text you were suppose to shift back 3 positions. Instead you chose to shift forward. That&#039;s good too, you can shift 23 positions forward to get the same results but you mistakenly used  modulo 27 instead of 26 (we use modulo 26 because there are 26 letters in the alphabet). 
Your code almost worked when shifting 24 positions.</description>
		<content:encoded><![CDATA[<p>The key to my encryption was 3, every letter of my initial text was shifted 3 positions.<br />
To decrypt the text you were suppose to shift back 3 positions. Instead you chose to shift forward. That&#8217;s good too, you can shift 23 positions forward to get the same results but you mistakenly used  modulo 27 instead of 26 (we use modulo 26 because there are 26 letters in the alphabet).<br />
Your code almost worked when shifting 24 positions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://www.needcodefor.com/php/caesar-cipher/comment-page-1/#comment-28</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Tue, 06 Jul 2010 09:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.needcodefor.com/?p=268#comment-28</guid>
		<description>I wrote my own code in c#:

&lt;code&gt;
private void Blast()
{
    string input_string = @&quot;KDLOFDHVDUZHZKRDUHDERXWWRGLHVDOXWHBRX&quot;;
    for (int i = 1; i&lt;=26; i++)
        Console.WriteLine(AddXToString(input_string, i));
}
private string AddXToString(string input_string, int X)
{
    StringBuilder b = new StringBuilder(input_string.Length);
    foreach (char c in input_string)
    {
        char n = (char) ((((((int)c) - 65) + X) % 27) + 65);
        b.Append(n);
    }
    return b.ToString();
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I wrote my own code in c#:</p>
<p><code><br />
private void Blast()<br />
{<br />
    string input_string = @"KDLOFDHVDUZHZKRDUHDERXWWRGLHVDOXWHBRX";<br />
    for (int i = 1; i&lt;=26; i++)<br />
        Console.WriteLine(AddXToString(input_string, i));<br />
}<br />
private string AddXToString(string input_string, int X)<br />
{<br />
    StringBuilder b = new StringBuilder(input_string.Length);<br />
    foreach (char c in input_string)<br />
    {<br />
        char n = (char) ((((((int)c) - 65) + X) % 27) + 65);<br />
        b.Append(n);<br />
    }<br />
    return b.ToString();<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihaela</title>
		<link>http://www.needcodefor.com/php/caesar-cipher/comment-page-1/#comment-27</link>
		<dc:creator>Mihaela</dc:creator>
		<pubDate>Tue, 06 Jul 2010 08:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.needcodefor.com/?p=268#comment-27</guid>
		<description>First of all congrats on breaking the code ;) There will be more riddles to come.

How did you decoded it? Did you write your own code or did you do it by hand?
Maybe you missed a letter at the end of the alphabet (Y is suspiciously close to Z).
If you run my PHP decryption code changing the key from 5 to 3 you get the correct message.</description>
		<content:encoded><![CDATA[<p>First of all congrats on breaking the code <img src='http://www.needcodefor.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  There will be more riddles to come.</p>
<p>How did you decoded it? Did you write your own code or did you do it by hand?<br />
Maybe you missed a letter at the end of the alphabet (Y is suspiciously close to Z).<br />
If you run my PHP decryption code changing the key from 5 to 3 you get the correct message.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://www.needcodefor.com/php/caesar-cipher/comment-page-1/#comment-26</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Tue, 06 Jul 2010 08:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.needcodefor.com/?p=268#comment-26</guid>
		<description>HailMihaela. :)

How strange, I got a mis-spelling of &quot;YOU&quot; as &quot;ZOU&quot; when I decoded this. I wonder what I did wrong...</description>
		<content:encoded><![CDATA[<p>HailMihaela. <img src='http://www.needcodefor.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>How strange, I got a mis-spelling of &#8220;YOU&#8221; as &#8220;ZOU&#8221; when I decoded this. I wonder what I did wrong&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

