<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Dean Carlson</title>
	
	<link>http://deantcarlson.com</link>
	<description>Thoughts on Tech, Security, and Life</description>
	<lastBuildDate>Wed, 22 Feb 2012 16:19:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/DeanCarlson" /><feedburner:info uri="deancarlson" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.0/</creativeCommons:license><item>
		<title>Introduction to Encryption Part 3 – The Vigenère Cipher</title>
		<link>http://feedproxy.google.com/~r/DeanCarlson/~3/Gn43iBTolYs/</link>
		<comments>http://deantcarlson.com/?p=97#comments</comments>
		<pubDate>Sun, 03 Apr 2011 17:00:40 +0000</pubDate>
		<dc:creator>Dean Carlson</dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cryptography]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://deantcarlson.com/?p=97</guid>
		<description><![CDATA[If you&#8217;ve been following along, you know what a Caesar cipher is. The Vigenère cipher takes that and modifies it by being polyalphabetic, which means it uses multiple substitution alphabets. The main tool to use for encrypting and decrypting is known as the tabula recta and is depicted below. The tabula recta consists of the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you&#8217;ve been following along, you know what a <a href="http://deantcarlson.com/?p=77">Caesar cipher</a> is. The Vigenère cipher takes that and modifies it by being polyalphabetic, which means it uses multiple substitution alphabets. The main tool to use for encrypting and decrypting is known as the tabula recta and is depicted below.<br />
<a href="http://deantcarlson.com/wp-content/uploads/2011/03/500px-Vigenère_square.svg_.png"><img src="http://deantcarlson.com/wp-content/uploads/2011/03/500px-Vigenère_square.svg_.png" alt="" title="500px-Vigenère_square.svg" width="500" height="500" class="aligncenter size-full wp-image-84" /></a><br />
The tabula recta consists of the alphabet written out 26 times in different rows. Each of these alphabets is then shifted by one letter compared to the previous alphabet. Sound familiar? They correspond to the 26 possible Caesar cipher alphabets. So how does the Vigenère cipher actually use this table? Let’s use our example from before where Caesar is trying to tell his generals this message.</p>

<div class="wp_syntax_wrapper"><span class="wp_syntax_lang">Text</span><div class="wp_syntax"><div class="code"><pre class="text" style="color: #FFF; font-family:&quot;Consolas&quot;,monospace,&quot;Courier New&quot;">YOU WILL ATTACK AT DAWN AND TAKE NO PRISONERS</pre></div></div></div>

<p>Now let’s pick a key to use to encrypt and decrypt the message. Note that the key is an actual word and not just a number to shift by. Let’s use the following word as the key.</p>

<div class="wp_syntax_wrapper"><span class="wp_syntax_lang">Text</span><div class="wp_syntax"><div class="code"><pre class="text" style="color: #FFF; font-family:&quot;Consolas&quot;,monospace,&quot;Courier New&quot;">CAESAR</pre></div></div></div>

<p>You use this key in the following way to encrypt the message. Repeat the key over and over for the length of the message and line it up to the letters like so.</p>

<div class="wp_syntax_wrapper"><span class="wp_syntax_lang">Text</span><div class="wp_syntax"><div class="code"><pre class="text" style="color: #FFF; font-family:&quot;Consolas&quot;,monospace,&quot;Courier New&quot;">YOU WILL ATTACK AT DAWN AND TAKE NO PRISONERS
CAE SARC AESARC AE SARC AES ARCA ES ARCAESARC</pre></div></div></div>

<p>Then use the tabula recta to encrypt the message. Find the row with the plaintext letter and the column with the key letter, this results in the encrypted letter. For example find row “C” column “Y” their intersection is letter “A” thus the first letter in the encrypted message is “A.” In the image the Red segment represents step 1, the blue section indicates step 2, and the green letter is the result.<br />
<a href="http://deantcarlson.com/wp-content/uploads/2011/04/500px-Vigenère_square.svg_2.png"><img src="http://deantcarlson.com/wp-content/uploads/2011/04/500px-Vigenère_square.svg_2.png" alt="" title="500px-Vigenère_square.svg_2" width="500" height="500" class="aligncenter size-full wp-image-96" /></a><br />
Follow the same principles for the rest of the message to get the encrypted message which is this.</p>

<div class="wp_syntax_wrapper"><span class="wp_syntax_lang">Text</span><div class="wp_syntax"><div class="code"><pre class="text" style="color: #FFF; font-family:&quot;Consolas&quot;,monospace,&quot;Courier New&quot;">AOY OICN AXLATM AX VANP ARV TRME RG PIKSSFEIU</pre></div></div></div>

<p>Let compare that to the Caesar cipher encoded message.</p>

<div class="wp_syntax_wrapper"><span class="wp_syntax_lang">Text</span><div class="wp_syntax"><div class="code"><pre class="text" style="color: #FFF; font-family:&quot;Consolas&quot;,monospace,&quot;Courier New&quot;">CSY AMPP EXXEGO EX HEAR ERH XEOI RS TVMWSRIVW</pre></div></div></div>

<p>Both look like a garbled mess to the normal onlooker, however trying to decrypt the message encrypted with the Vigenère cipher is exponentially more difficult to crack, both the message and the key.<br />
Similar to encryption, decryption follows a similar method. Find the key letter row, then find the encrypted letter within that row. The column in which that resides is the decrypted letter. For example, go to row “C.” Then find the letter “A” within that row. Then look at the column that letter is in, which is “Y.” In the image above used for encryption, the red section represents step 1, the green letter is step 2, the blue line is step 3, which results in the blue letter. Following this principle, you can decrypt the message back to “ATTACK AT DAWN AND TAKE NO PRISONERS.” In my next post I will use the described principles, a part of the encrypted message, and plaintext (decrypted) message to derive the key programmatically.</p>
<div class="shr-publisher-97"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdeantcarlson.com%2F%3Fp%3D97' data-shr_title='Introduction+to+Encryption+Part+3+-+The+Vigen%C3%A8re+Cipher'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://deantcarlson.com/?feed=rss2&amp;p=97</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://deantcarlson.com/?p=97</feedburner:origLink></item>
		<item>
		<title>Introduction to Encryption Part 2 – The Caesar Cipher</title>
		<link>http://feedproxy.google.com/~r/DeanCarlson/~3/FSIWg612r7k/</link>
		<comments>http://deantcarlson.com/?p=77#comments</comments>
		<pubDate>Wed, 23 Mar 2011 22:00:26 +0000</pubDate>
		<dc:creator>Dean Carlson</dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cryptography]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://deantcarlson.com/?p=77</guid>
		<description><![CDATA[Now that you know how encryption works, I will explain the most basic of ciphers, the Caesar Cipher. The Caesar cipher was used by Julius Caesar, thus the name, to communicate to his generals in a safer way than the message being in plain text. The cipher itself is a simple substitution or “shift” cipher. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Now that you know how encryption works, I will explain the most basic of ciphers, the Caesar Cipher. The Caesar cipher was used by Julius Caesar, thus the name, to communicate to his generals in a safer way than the message being in plain text. The cipher itself is a simple substitution or “shift” cipher. The cipher is executed by picking a number then simply shifting the message by that number of letters. This image demonstrates a shifting of 3 places.<br />
<a href="http://deantcarlson.com/wp-content/uploads/2011/03/500px-Caesar3.png"><img src="http://deantcarlson.com/wp-content/uploads/2011/03/500px-Caesar3-300x126.png" alt="" title="500px-Caesar3" width="300" height="126" class="aligncenter size-medium wp-image-83" /></a><br />
For example, here is the alphabet, and here is the resulting alphabet with a shift of 3 letters.</p>

<div class="wp_syntax_wrapper"><span class="wp_syntax_lang">Text</span><div class="wp_syntax"><div class="code"><pre class="text" style="color: #FFF; font-family:&quot;Consolas&quot;,monospace,&quot;Courier New&quot;">Regular Alphabet  :   ABCDEFGHIJKLMNOPQRSTUVWXYZ
Encrypted Alphabet:   DEFGHIJKLMNOPQRSTUVWXYZABC</pre></div></div></div>

<p>To expand upon this example here is a message Caesar might have said:</p>

<div class="wp_syntax_wrapper"><span class="wp_syntax_lang">Text</span><div class="wp_syntax"><div class="code"><pre class="text" style="color: #FFF; font-family:&quot;Consolas&quot;,monospace,&quot;Courier New&quot;">YOU WILL ATTACK AT DAWN AND TAKE NO PRISONERS</pre></div></div></div>

<p>The message the general’s would have received would look like this if the shift value was 4:</p>

<div class="wp_syntax_wrapper"><span class="wp_syntax_lang">Text</span><div class="wp_syntax"><div class="code"><pre class="text" style="color: #FFF; font-family:&quot;Consolas&quot;,monospace,&quot;Courier New&quot;">BRX ZLOO DWWDFN DW GDZQ DQG WDNH QR SULVRQHUV</pre></div></div></div>

<p>By using the modified alphabet above you can both encrypt and decrypt this message. While this is horribly insecure and easily decoded by today’s standards, it seems like it worked to some degree in Caesar’s time. This was probably because most people were illiterate and those that could read would dismiss it as an unreadable foreign language. As ancient as this cipher may seem, it was used as late as 1915 by the Russian army. They chose to do so because it would allow the troops to understand the messages more easily.  Unfortunately for them, it was just as easily decoded by their enemies. Convenience often gets in the way of security but that will be covered at a later time. I hope this helped you understand the basics of the Caesar cipher. In my next post, I will talk about the Vigenère cipher, and how to crack it, which is a more complex version of the Caesar cipher.</p>
<div class="shr-publisher-77"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdeantcarlson.com%2F%3Fp%3D77' data-shr_title='Introduction+to+Encryption+Part+2+-+The+Caesar+Cipher'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://deantcarlson.com/?feed=rss2&amp;p=77</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://deantcarlson.com/?p=77</feedburner:origLink></item>
		<item>
		<title>Introduction to Encryption</title>
		<link>http://feedproxy.google.com/~r/DeanCarlson/~3/YlVQ3WBEsB8/</link>
		<comments>http://deantcarlson.com/?p=58#comments</comments>
		<pubDate>Mon, 14 Mar 2011 22:30:34 +0000</pubDate>
		<dc:creator>Dean Carlson</dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cryptography]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://deantcarlson.com/?p=58</guid>
		<description><![CDATA[Below is a presentation I did about 3 years ago on encryption. I talk about the difference between symmetric and asymmetric encryption, DMCA, cold boot attack, and much more. Below is the PowerPoint presentation and the corresponding video of the presentation. I apologize for the quality it was recorded with a web cam from a [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Below is a presentation I did about 3 years ago on encryption. I talk about the difference between symmetric and asymmetric encryption, DMCA, cold boot attack, and much more. Below is the PowerPoint presentation and the corresponding video of the presentation. I apologize for the quality it was recorded with a web cam from a distance while presenting to the class.</p>
<iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fdeantcarlson.com%2Fwp-content%2Fuploads%2F2011%2F03%2FEncryption.ppt&embedded=true" width="100%" height="604" marginwidth="0" marginheight="0" frameborder="0"></iframe><object data="http://www.youtube.com/v/5d3Nd7PdRCc?version=3&rel=0&fs=1&showinfo=0" type="application/x-shockwave-flash" width="604" height="370">
  <param name="movie" value="http://www.youtube.com/v/5d3Nd7PdRCc?version=3&rel=0&fs=1&showinfo=0"></param>
  <param name="wmode" value="opaque"></param>
  <param name="allowFullScreen" value="true"></param>
  <param name="allowScriptAccess" value="always"></param>
</object><object data="http://www.youtube.com/v/vwPQb-8gneo?version=3&rel=0&fs=1&showinfo=0" type="application/x-shockwave-flash" width="604" height="370">
  <param name="movie" value="http://www.youtube.com/v/vwPQb-8gneo?version=3&rel=0&fs=1&showinfo=0"></param>
  <param name="wmode" value="opaque"></param>
  <param name="allowFullScreen" value="true"></param>
  <param name="allowScriptAccess" value="always"></param>
</object>
<div class="shr-publisher-58"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdeantcarlson.com%2F%3Fp%3D58' data-shr_title='Introduction+to+Encryption'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://deantcarlson.com/?feed=rss2&amp;p=58</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://deantcarlson.com/?p=58</feedburner:origLink></item>
		<item>
		<title>My Introduction to Vulnerability Discovery</title>
		<link>http://feedproxy.google.com/~r/DeanCarlson/~3/2SnJVJcheqM/</link>
		<comments>http://deantcarlson.com/?p=13#comments</comments>
		<pubDate>Sun, 27 Feb 2011 17:10:45 +0000</pubDate>
		<dc:creator>Dean Carlson</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[vulnerability discovery]]></category>

		<guid isPermaLink="false">http://deantcarlson.com/?p=13</guid>
		<description><![CDATA[I have been fascinated by computer security and vulnerability discovery ever since I was a kid. While what is described below isn’t really a “vulnerability” in the program, it certainly compromises one of the main aspects. At one point I was trying to figure out a way to bypass my parent’s internet restrictor, CyberSitter. It [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I have been fascinated by computer security and vulnerability discovery ever since I was a kid. While what is described below isn’t really a “vulnerability” in the program, it certainly compromises one of the main aspects. At one point I was trying to figure out a way to bypass my parent’s internet restrictor, CyberSitter. It was not for the purposes you might be thinking of, CyberSitter had the ability to enable and disable the internet based on the time. Being a “gamer” since I was 4, I played an online RPG into the wee hours of the next morning. I discovered a few loopholes in this software to enable the internet. One of them was that if I managed to get connected, I wouldn&#8217;t get disconnected when the time threshold was passed. If I did end up getting disconnected and it was passed &#8220;the time&#8221; I wouldn&#8217;t be able to connect. That is, unless I changed the windows time to before the cut off. Using these two workarounds I was able to exploit the program to allow me to play at any time I wanted. Granted, the time automatically changes back after it realizes it has been changed, but thanks to the first mentioned workaround it didn’t matter unless disconnected. Now that I am a little more computer savvy, I can even go a step further and change the BIOs time to whatever I wanted, but that would be very noticeable.</p>
<p>Prior to trying this I tried to end the process &#8220;Cyb2k&#8221; which was obviously Cyber Sitter; however, the coders were smart enough to have it automatically restart itself if ended. I thought of editing the startup programs to not run Cyb2k on startup, but this can cause a problem in the aspect of not being noticeable to the people who put the system in place. If someone reboots or decides to check the logs or whatever, the process won&#8217;t be there and raise suspicion. Now, until recently I didn&#8217;t really know all of the capabilities of Cyber Sitter. This program is a major invasion of privacy in my opinion. It can do everything from blocking sites, to logging instant messages. Yes, it intercepts messaging protocols and logs every word into an encrypted file. This seems to go from the realm of safeguarding the user to straight up spying. How much invasion is acceptable? A question that has been debated and will continue to be debated for a very very long time.</p>
<div class="shr-publisher-13"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdeantcarlson.com%2F%3Fp%3D13' data-shr_title='My+Introduction+to+Vulnerability+Discovery'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://deantcarlson.com/?feed=rss2&amp;p=13</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://deantcarlson.com/?p=13</feedburner:origLink></item>
		<item>
		<title>Hello (again) World</title>
		<link>http://feedproxy.google.com/~r/DeanCarlson/~3/II1T6kY7KZA/</link>
		<comments>http://deantcarlson.com/?p=6#comments</comments>
		<pubDate>Sun, 20 Feb 2011 02:35:53 +0000</pubDate>
		<dc:creator>Dean Carlson</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://deantcarlson.com/?p=6</guid>
		<description><![CDATA[After my old posts and database were accidentally deleted by my hosting company, I need to resurrect my website. I will be working on some new posts in the coming days.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>After my old posts and database were accidentally deleted by my hosting company, I need to resurrect my website. I will be working on some new posts in the coming days.</p>
<div class="shr-publisher-6"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fdeantcarlson.com%2F%3Fp%3D6' data-shr_title='Hello+%28again%29+World'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://deantcarlson.com/?feed=rss2&amp;p=6</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://deantcarlson.com/?p=6</feedburner:origLink></item>
	</channel>
</rss>

