<?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>AOIP - Anything Over IP &#187; CSVPN</title>
	<atom:link href="http://www.anythingoverip.co.za/category/tutorials/course-content/csvpn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anythingoverip.co.za</link>
	<description>Anything Over IP</description>
	<lastBuildDate>Wed, 27 Jul 2011 05:24:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Hashing, What is it and how does it work?</title>
		<link>http://www.anythingoverip.co.za/networking-101/hashing-what-is-it-and-how-does-it-work/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/hashing-what-is-it-and-how-does-it-work/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 06:00:24 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[CSVPN]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Encyption]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=83</guid>
		<description><![CDATA[Hashing is very different from encryption even though so many people believe it is an encryption protocol. Yes it does scramble the data, so from that aspect it is an encryption program, but the big difference between hashing and encryption, is that Hashing is mathematically impossible to reverse. Now I&#8217;m not the kind of person [...]]]></description>
			<content:encoded><![CDATA[<p>Hashing is very different from <a href="http://www.anythingoverip.co.za/networking-101/how-encryption-works/">encryption</a> even though so many people believe it is an encryption protocol. Yes it does scramble the data, so from that aspect it is an encryption program, but the big difference between hashing and encryption, is that Hashing is mathematically impossible to reverse. Now I&#8217;m not the kind of person that believes that something is impossible, but I&#8217;ve had to surrender myself to this concept. This is not to say that it cannot be broken&#8230;. because it can&#8230; it just cannot be reversed.</p>
<p> </p>
<p>If we look at a hashing algorithm such as MD5, which is 128-bits, it&#8217;s role and purpose is to take any data you wish, and turn it INTO 128-bits. Now if you imagine I have a manual of 800 pages and I was to run it through the MD5 algorithm, the output would be 128-bits&#8230;. that&#8217;s 128 1&#8242;s and 0&#8242;s&#8230; how is it possible to turn 128 1&#8242;s and 0&#8242;s back into a 800 page manual? 128-bits might be big enough to indicate to us what language the book was written in, but what font type? Font size? Where is the page numbering? Are there pictures? Etc&#8230;</p>
<p> </p>
<p>So if it&#8217;s impossible to reverse something that has been hashed, what is it used for? The simple answer is Integrity. Integrity is there for us to prove that the data has not been tampered with, or changed in any way, and to proof it came from the correct person.</p>
<p> </p>
<p>As an example, If I was to send you an e-mail that said, &#8220;please pay John Doe $100&#8243;, and John Doe was to intercept that e-mail and changed it to say &#8220;please pay John Doe $1000&#8243; I would not be too happy when my account was debited with the wrong amount. So what if instead of just sending you a clear message, I was to take the original data &#8220;please pay John Doe $100&#8243; and then I was to take a secret word that only you and I knew about like &#8220;secretpassword&#8221; and hashed both values together. This would result in a 128-bit hash value (Result1), that I would then attach to the original message &#8220;please pay John Doe $100&#8243;</p>
<p> </p>
<p>When you receive the e-mail it will have the original message &#8220;please pay John Doe $100&#8243; and it will have &#8216;Result1&#8242;. You will take the original message, and take the password that only you and I know about &#8220;secretpassword&#8221; and hash them together. You would end up with a result (Result2). If &#8216;Result1&#8242; is equal to &#8216;Result2&#8242; then the message is correct and has not been tampered with. If the two input fields &#8220;please pay John Doe $100&#8243; and &#8220;secretpassword&#8221; are used on both sides, the result has to be the same&#8230;. If the result is not the same, the two inputs used on my side are not the same as the two input fields on your side. Assuming we both have used the same password, then the only that could have changed is the message, proving the message has been tampered with, and we can throw it away.</p>
<p> </p>
<p>Hashing is also used extensively in passwords for authentication. When I log onto my computer in the morning, I type my username &#8220;user&#8221; and I type my password &#8220;password&#8221;. My computer sends my username to my Domain Controller in clear text (no encryption or hashing), and sends the HASH of my password not the actual password! My Domain Controller knows what my password is supposed to be, so it checks my user account in its database, retrieves what my password should be, then it hashes my password that it retrieved from its database and compares that with what I sent it. If the two results are the same, I typed my password in correctly, if they are different, I got my password wrong. This is really good from a security point of view, as if someone was to &#8216;listen in&#8217; on my conversation to try receive my password as it&#8217;s sent to the Domain Controller, all they would get is the Hash value, and not my password.</p>
<p> </p>
<p>Note: When computers hash passwords they also include extra information in the equation such as the session number, which prevents the Hash from been re-played by someone else.</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/networking-101/how-encryption-works/' rel='bookmark' title='Permanent Link: How encryption works'>How encryption works</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/snd/decrypting-type-7-passwords-enable-password/' rel='bookmark' title='Permanent Link: Decrypting Type 7 Passwords (enable password)'>Decrypting Type 7 Passwords (enable password)</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/snd/configuring-ssh-secure-shell-on-a-cisco-device/' rel='bookmark' title='Permanent Link: Configuring SSH (Secure Shell) on a Cisco device'>Configuring SSH (Secure Shell) on a Cisco device</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/hashing-what-is-it-and-how-does-it-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How encryption works</title>
		<link>http://www.anythingoverip.co.za/networking-101/how-encryption-works/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/how-encryption-works/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 06:00:46 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CSVPN]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Binary]]></category>
		<category><![CDATA[Encyption]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=30</guid>
		<description><![CDATA[The concept of encryption can be quite daunting when you first look at it, however the basic concept of encryption is not that hard to understand   When I moved into my house, my bathroom door didn&#8217;t have a key. The previous owners of the house didn&#8217;t know what key was needed for that door [...]]]></description>
			<content:encoded><![CDATA[<p>The concept of encryption can be quite daunting when you first look at it, however the basic concept of encryption is not that hard to understand</p>
<p> </p>
<p>When I moved into my house, my bathroom door didn&#8217;t have a key. The previous owners of the house didn&#8217;t know what key was needed for that door as they never had one either.</p>
<p>I went down to my local hardware store and spoke to them about my problem, and after paying a deposit for a whole set of keys, I was on my way back home.</p>
<p> </p>
<p>The key set they gave me was for the Y-standard (each key starts with Y, i.e. Y1, Y2, Y3 etc), and there were just over a hundred of these keys. So there I was, in my bathroom trying every key in the bunch starting at Y1 all the way through to the end. Now if it had been my lucky day, I would have tried Y1 and had success. Worst case scenario it would have been the very last key, which I think was Y115. Now with only about 115 keys to try, it really isn&#8217;t the end of the world, and I did manage to find the right one after some time.</p>
<p> </p>
<p>The point to my scenario, is that no-one had to explain to me how to use a key, or how to unlock a door. That&#8217;s not a big secret to anyone. The big secret is, which key opens the door.</p>
<p>Similarly with encryption, the algorithm that is used to encrypt and decrypt data is freely available on the internet, if you were to do a couple searches you will find the equation used in particular formula &#8211; much like different doors have different types of locks.</p>
<p> </p>
<p>The big difference between my bathroom door, and computer encryption, is the amount of keys in the bunch.</p>
<p>If we were to assume that there was such a thing as 3-bit encryption, then the possible keys would be</p>
<p>000</p>
<p>001</p>
<p>010</p>
<p>011</p>
<p>100</p>
<p>101</p>
<p>110</p>
<p>111</p>
<p> </p>
<p>Giving us 8 possible keys to try (2 to the power of 3). Needless to say, with only 8 keys this would take no time at all to find the right one to &#8220;open our door&#8221;</p>
<p> </p>
<p>Encryption technologies therefore use a much larger structure, and hence have a lot more keys that one would have to try to break into an encrypted document.</p>
<p>40-bit encryption (2 to the power of 40) gives us a total of 1,099,511,627,776 &#8211; That&#8217;s over a TRILLION possibilities, and it&#8217;s a good thing that my bathroom door didn&#8217;t have that many keys I had to try! But just how good is that? Considering that in human terms a trillion of anything is amazing. Computers however are able to do millions and billions of things per second. My computer for example, is able to test just over 10 million keys per second, which makes a trillion not that far out of reach. Based on that, it would take my machine 1.2 Days to crack a 40-bit encryption standard.</p>
<p> </p>
<p>So how good is 56-bit encryption then?</p>
<p>56-bit will give us a total of 72,057,594,037,927,936 (72 Quadrillion keys!!!) I can&#8217;t even comprehend that amount of anything. But yet again, just how good is that really. Well based on my computer been able to do just over 10 million keys per second, it would take my computer 228 YEARS!!!! The beautiful thing about <a href="http://www.anythingoverip.co.za/networking-101/how-to-count-in-binary/">binary</a>, is that for every <a href="http://www.anythingoverip.co.za/networking-101/what-is-binary/">bit</a> larger the encryption key is, the amount of keys DOUBLES in size. So 57-bit would take me 456 Years, 58-bit would take me 912 Years etc.</p>
<p> </p>
<p>The good news is, that encryption standards today usually work on</p>
<p>56-bit                             72,057,594,037,927,936         (228 years for my computer to decrypt)</p>
<p>64-bit                    18,446,744,073,709,551,616         (58,494 Years)</p>
<p>128-bit                  ???</p>
<p>1024-bit                ???</p>
<p>2048-bit                ???</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/networking-101/hashing-what-is-it-and-how-does-it-work/' rel='bookmark' title='Permanent Link: Hashing, What is it and how does it work?'>Hashing, What is it and how does it work?</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/snd/configuring-ssh-secure-shell-on-a-cisco-device/' rel='bookmark' title='Permanent Link: Configuring SSH (Secure Shell) on a Cisco device'>Configuring SSH (Secure Shell) on a Cisco device</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/snd/decrypting-type-7-passwords-enable-password/' rel='bookmark' title='Permanent Link: Decrypting Type 7 Passwords (enable password)'>Decrypting Type 7 Passwords (enable password)</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/how-encryption-works/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

