<?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>Go Hacking &#187; ENCRYPTION</title>
	<atom:link href="http://www.gohacking.com/category/encryption/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gohacking.com</link>
	<description>Learn How To Hack! Know more about Computer/Internet Security. Get Real Hacking Tips from Experts. Cool place to Learn Hacking</description>
	<lastBuildDate>Tue, 20 Jul 2010 03:15:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>What is MD5 Hash and How to Use it?</title>
		<link>http://www.gohacking.com/2010/01/what-is-md5-hash-and-how-to-use-it.html</link>
		<comments>http://www.gohacking.com/2010/01/what-is-md5-hash-and-how-to-use-it.html#comments</comments>
		<pubDate>Tue, 19 Jan 2010 12:43:23 +0000</pubDate>
		<dc:creator>Srikanth</dc:creator>
				<category><![CDATA[ENCRYPTION]]></category>

		<guid isPermaLink="false">http://www.gohacking.com/?p=2071</guid>
		<description><![CDATA[In this post I will explain you about one of my favorite and interesting cryptographic algorithm called MD5 (Message-Digest algorithm 5). This algorithm is mainly used to perform file integrity checks under most circumstances. Here I will ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-2073" title="md5 Hash Uses" src="http://www.gohacking.com/wp-content/uploads/2010/01/md51.jpg" alt="" width="267" height="97" />In this post I will explain you about one of my favorite and interesting <a href="http://en.wikipedia.org/wiki/Cryptography" target="_blank">cryptographic algorithm</a> called <strong>MD5 </strong>(<strong>Message-Digest algorithm 5</strong>). This algorithm is mainly used to perform file integrity checks under most circumstances. Here I will not jump into the technical aspects of this algorithm, rather will tell you about how to make use of this algorithm in your daily life. Before I tell you about how to use MD5, I would like to share one of my recent experience which made me start using MD5 algorithm.</p>
<p>Recently I made some significant changes and updates to my website and as obvious I generated a complete backup of the site on my server. I downloaded this backup onto my PC and deleted the original one on the server. But after a few days something went wrong and I wanted to restore the backup that I downloaded. When I tried to restore the backup I was shocked! The backup file that I used to restore was corrupted. That means, the backup file that I downloaded onto my PC wasn&#8217;t exactly the one that was on my server. The reason is that there occured some data loss during the download process. Yes, this data loss can happen often when a file is downloaded from the Internet. The file can be corrupted due to any of the following reasons.</p>
<ul>
<li>Data loss during the download process, due to instability in the Internet connection/server</li>
<li>The file can be tampered due to virus infections or</li>
<li>Due to Hacker attacks</li>
</ul>
<p>So whenever you download any valuable data from the Internet it is completely necessary that you check the integrity of the downloaded file. That is you need to ensure that the downloaded file is exactly the same as that of the original one. In this scenario the MD5 hash can become handy. All you have to do is generate MD5 hash (or MD5 check-sum) for the intended file on your server. After you download the file onto your PC, again generate MD5 hash for the downloaded file. Compare these two hashes and if it matches then it means that the file is downloaded perfectly without any data loss.</p>
<p>A MD5 hash is nothing but a 32 digit hexadicimal number which can be something as follows</p>
<div id="stb-container" class="stb-container"><div class='stb-info-caption_box stb_caption' >A Sample MD5 Hash</div><div class='stb-info-body_box stb_body' ><strong>e4d909c290d0fb1ca068ffaddf22cbd0</strong></div></div>
<p>This hash is unique for every file irrespective of it&#8217;s size and type. That means two .exe files with the same size will not have the same MD5 hash even though they are of same type and size. So MD5 hash can be used to uniquely identify a file. </p>
<div>&nbsp;</div>
<h3>How to use MD5 Hash to check the Integrity of Files?</h3>
<div>&nbsp;</div>
<p>Suppose you have a file called <strong>backup.tar</strong> on your server. Before you download, you need to generate MD5 hash for this file on your server. To do so use the following command.</p>
<p><i>For UNIX:</i></p>
<div class='stb-info_box' ><strong>md5sum backup.tar</strong></div>
<p>When you hit ENTER you&#8217;ll see something as follows</p>
<div class='stb-info_box' ><strong>e4d909c290d0fb1ca068ffaddf22cbd0</strong></div>
<div>&nbsp;</div>
<p>This is the MD5 hash for the file <strong>backup.tar</strong>. After you download this file onto your PC, you can cross check it&#8217;s integrity by again re-generating MD5 hash for the downloaded file. If both the hash matches then it means that the file is perfect. Otherwise it means that the file is corrupt. To generate the MD5 hash for the downloaded file on your Windows PC use the following freeware tool</p>
<p><a href="http://www.md5summer.org/download.html" target="_blank">MD5 Summer</a> (Click on the link to download)</p>
<p>I hope you like this post. For further doubts and clarifications please pass your comments. Cheers!</p>
<img src="http://www.gohacking.com/?ak_action=api_record_view&id=2071&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.gohacking.com/2010/01/what-is-md5-hash-and-how-to-use-it.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Know More About Secure Sockets Layer (SSL)</title>
		<link>http://www.gohacking.com/2009/01/know-more-about-secure-sockets-layer-ssl.html</link>
		<comments>http://www.gohacking.com/2009/01/know-more-about-secure-sockets-layer-ssl.html#comments</comments>
		<pubDate>Mon, 26 Jan 2009 13:19:35 +0000</pubDate>
		<dc:creator>Srikanth</dc:creator>
				<category><![CDATA[ENCRYPTION]]></category>
		<category><![CDATA[PC SECURITY]]></category>

		<guid isPermaLink="false">http://www.gohacking.com/?p=844</guid>
		<description><![CDATA[Secure Sockets Layer (SSL) is the most widely used technology for providing a secure communication between the web client and the web server. Most of us are familiar with many sites such as Gmail, Yahoo etc. using https ...]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-856" title="SSL" src="http://www.gohacking.com/wp-content/uploads/2009/01/lock2.jpg" alt="" width="169" height="200" />Secure Sockets Layer (SSL) is the most widely used technology for providing a secure communication between the web client and the web server. Most of us are familiar with many sites such as Gmail, Yahoo etc. using <strong><big>https </big></strong>protocol in their login pages. When we see this, we may wonder what&#8217;s the difference between <strong>http</strong> and <strong>https</strong>. In simple words HTTP protocol is used for standard communication between the Web server and the client. HTTPS is used for a SECURE communication.</p>
<div>&nbsp;</div>
<h3>What exactly is Secure Communication ?</h3>
<div>&nbsp;</div>
<p>Suppose there exists two communication parties<strong> A</strong> (client) and <strong>B</strong> (server).</p>
<div>&nbsp;</div>
<p><strong>Working of HTTP</strong></p>
<p>When <strong>A</strong> sends a message to <strong>B</strong>, the message is sent as a plain text in an unencrypted manner. This is acceptable in normal situations where the messages exchanged are not confidential. But imagine a situation where<strong> A</strong> sends a <span style="text-decoration: underline;">PASSWORD</span> to <strong>B</strong>. In this case, the password is also sent as a plain text. This has a serious security problem because, if an intruder (hacker) can gain unauthorised access to the ongoing communication between <strong>A</strong> and <strong>B</strong> , he can see the PASSWORDS since they remain unencrypted. This scenario is illustrated using the following figure</p>
<p style="text-align: center;"><img class="size-full wp-image-846  aligncenter" title="Working of HTTP" src="http://www.gohacking.com/wp-content/uploads/2009/01/http1.jpg" alt="" width="530" height="205" /></p>
<div>&nbsp;</div>
<p><strong>Now lets see the working of HTTPS</strong></p>
<p>When <strong>A</strong> sends a <span style="text-decoration: underline;">PASSWORD</span> (say &#8220;<strong>mypass</strong>&#8220;) to <strong>B</strong>, the message is sent in an encrypted format. The encrypted message is decrypted on <strong>B</strong>&#8216;s side. So even if the Hacker gains an unauthorised access to the ongoing communication between <strong>A</strong> and <strong>B </strong>he gets only the encrypted password (&#8220;<strong>xz54p6kd</strong>&#8220;) and not the original password. This is shown below</p>
<p style="text-align: center;"><img class="size-full wp-image-848    aligncenter" title="Working of HTTPS" src="http://www.gohacking.com/wp-content/uploads/2009/01/https1.jpg" alt="" width="556" height="199" /></p>
<div>&nbsp;</div>
<h3 style="text-align: left;">How is HTTPS implemented ?</h3>
<div>&nbsp;</div>
<p>HTTPS is implemented using <strong>Secure Sockets Layer</strong> (SSL). A website can implement HTTPS by purchasing an <strong>SSL Certificate</strong>. Secure Sockets Layer (SSL) technology protects a Web site and makes it easy for the Web site visitors to trust it. It has the following uses</p>
<ol>
<li>An SSL Certificate enables <strong>encryption</strong> of sensitive information during online transactions.</li>
<li>Each SSL Certificate contains unique, <strong>authenticated</strong> information about the certificate owner.</li>
<li>A Certificate Authority <strong>verifies</strong> the identity of the certificate owner when it is issued.</li>
</ol>
<div>&nbsp;</div>
<p><strong>How Encryption Works ?</strong></p>
<p>Each SSL Certificate consists of a <strong>Public key</strong> and a<strong> Private key</strong>. The public key is used to encrypt the information and the private key is used to decrypt it. When your browser connects to a secure domain, the server sends a Public key to the browser to perform the encryption. The public key is made available to every one but the private key(used for decryption) is kept secret. So during a secure communication, the browser encrypts the message using the public key and sends it to the server. The message is decrypted on the server side using the Private key(Secret key).</p>
<div>&nbsp;</div>
<p><strong>How to identify a Secure Connection ?</strong><br />
In Internet Explorer, you will see a lock icon <img class="embedObject" src="http://windowshelp.microsoft.com/BetterWhenConnectedHelpWS/GetContent.aspx?assetID=270b1b5c-1151-4886-9994-901c2e4568b3&amp;documentSet=en-US&amp;renderKey=SIGNED1" alt="Picture of the Lock icon" /> in the Security Status bar. The Security Status bar is located on the right side of the Address bar. You can click the lock to view the identity of the website.</p>
<p>In high-security browsers, the authenticated organization name is prominently displayed and the address bar turns <span style="color: #008000;"><strong>GREEN </strong></span>when an Extended Validation SSL Certificate is detected. If the information does not match or the certificate has expired, the browser displays an error message or warning and the status bar may turn <strong><span style="color: #ff0000;">RED</span></strong>.</p>
<p>So the bottom line is, whenever you perform an online transaction such as <strong>Credit card payment, Bank login or Email login</strong> always ensure that you have a secure communication. A secure communication is a must in these situations. Otherwise there are chances of <a href="http://www.gohacking.com/2008/01/know-more-about-phishing-attack.html" target="_self">Phishing</a> using a <a href="http://www.gohacking.com/2008/12/hacking-yahoo-gmail-or-any-other-password.html" target="_self">Fake login Page</a>.</p>
<p>I Hope this helps. Please pass your comments.</p>
<img src="http://www.gohacking.com/?ak_action=api_record_view&id=844&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.gohacking.com/2009/01/know-more-about-secure-sockets-layer-ssl.html/feed</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
	</channel>
</rss>
