<?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>Seree Woradechjamroen &#187; decryption</title>
	<atom:link href="http://www.iamseree.com/tag/decryption/feed" rel="self" type="application/rss+xml" />
	<link>http://www.iamseree.com</link>
	<description>Keep learning everyday, willing to win and take action</description>
	<lastBuildDate>Tue, 15 May 2012 16:06:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Cryptography in .NET &#8211; Part I</title>
		<link>http://www.iamseree.com/application-development/cryptography-in-net-part-i</link>
		<comments>http://www.iamseree.com/application-development/cryptography-in-net-part-i#comments</comments>
		<pubDate>Wed, 19 Dec 2007 12:52:36 +0000</pubDate>
		<dc:creator>Seree</dc:creator>
				<category><![CDATA[Application Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[asymmetric]]></category>
		<category><![CDATA[cryptography]]></category>
		<category><![CDATA[decryption]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[symmetric]]></category>

		<guid isPermaLink="false">http://www.iamseree.com/?p=37</guid>
		<description><![CDATA[<p>Hi folks,</p> <p>Today, let&#8217;s see what .NET was provided to developer like us about cryptography.</p> <p>In this post, I&#8217;ll talk about a brief of cryptography. How .NEt handle it and how many way to do some cryptographic in .NET.</p> <p>For sample of implementation, I&#8217;ll cover it all from basic encryption to decryption, hashing, using message [...]]]></description>
			<content:encoded><![CDATA[<p>Hi folks,</p>
<p>Today, let&#8217;s see what .NET was provided to developer like us about cryptography.</p>
<p>In this post, I&#8217;ll talk about a brief of cryptography. How .NEt handle it and how many way to do some cryptographic in .NET.</p>
<p>For sample of implementation, I&#8217;ll cover it all from basic encryption to decryption, hashing, using message authentication code (MAC), hash-based message authentication code (HMAC) and even Digital signature. But it&#8217;ll continue to the next part.</p>
<p>Here we&#8217;ll focus to the cryptography in System.Security.Cryptography namespace.</p>
<p>.NET has divided cryptography into three main functionality basis.</p>
<p>1. Basic cryptography &#8211; See about encrypt &amp; decrypt.</p>
<p>2. Hashing algorithm &#8211; See about hash calculation.</p>
<p>3. Digital signature &#8211; See about digital signature to be used in data transfer on network.</p>
<p>Let&#8217;s talk a brief one-by-one. Begin with basic cryptography.</p>
<p>1. Basic Cryptography</p>
<p>It&#8217;s like what its name saids. It&#8217;s totally a basic function on cryptography. With basic cryptography like this, it have been divided into two sub models.</p>
<blockquote><p>1.1 Symmetric Key</p>
<p>Someone call this &#8220;Secret Key&#8221; but in theoritical, it usually named as &#8220;Symmetric Key&#8221; in term.</p>
<p>With this model, the person who want to encrypt the data required a single key called &#8220;Secret Key&#8221; in encryption process. Someone call this key as &#8220;Private Key&#8221;. It&#8217;s equal in meaning.</p>
<p>When people want to decrypt the data, they need to use the &#8220;Secret Key&#8221; that used to encrypt the data.</p>
<p>This all means both encryptor and decryptor should have the same &#8220;Secret Key&#8221; to work properly.</p>
<p>This wasn&#8217;t much secured because you need to give away the &#8220;Key&#8221; to public people to encrypt the data and send back to you. So with this model, we&#8217;ll have a higher risk to be attacked by man-in-the-middle method. As he may know the &#8220;Key&#8221; that we distributes. This known as weakness of symmetric key model.</p>
<p>1.2 Asymmetric Keys</p>
<p>Someone call this &#8220;Public Key Cryptographic System&#8221; or &#8220;PKCS&#8221;. As you may seen its name &#8220;Asymmetric Keys&#8221;. See the &#8220;Keys&#8221; not a &#8220;Key&#8221;. This extra &#8220;s&#8221; means we&#8217;ll have more than one key in this model. This requires a pair of keys.</p>
<p>The first one we call it &#8220;Public Key&#8221; and the second one is &#8220;Private Key&#8221;.</p>
<p>&#8220;Public Key&#8221; will be distributed to public people who want to encrypt the data and send back to us.</p>
<p>The only thing you should know about &#8220;Public Key&#8221; is that it should be used to encrypt data only. It&#8217;s unable to decrypt the data that have been encrypt by itself.</p>
<p>When you want to decrypt it, you should use &#8220;Private Key&#8221; only. This means, the data collector will keep &#8220;Private Key&#8221; alone and no need to distribute &#8220;Private Key&#8221; to anyone except himself.</p>
<p>This model will lowering the risk of man-in-the-middle attack. It&#8217;s all because the data collector people not need to distribute &#8220;Private Key&#8221;. So, It&#8217;s much easier to keep it confidential.</p></blockquote>
<p>All we&#8217;ve talk is about the basic cryptography. The next part I&#8217;ll cover into the next topic. Hashing algorithm in brief.</p>
<p>I&#8217;ll try to finish all brief on MAC, HMAC and Digital signature in the next part. After that, we&#8217;ll play with the sample code in real world case study. And not theoritically-based at all, because I hate theoritically sample!</p>
<p>See yah next part.</p>
<div align="left" style="float: ; padding: 5px 5px 0px 0px;"><a name="fb_share" type="button" share_url="http://www.iamseree.com/application-development/cryptography-in-net-part-i"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.iamseree.com/application-development/cryptography-in-net-part-i/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

