<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tom Alderman&#039;s Blog</title>
	<atom:link href="http://talderman.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://talderman.wordpress.com</link>
	<description>A Coding Experience</description>
	<lastBuildDate>Sat, 14 Jun 2008 01:39:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='talderman.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tom Alderman&#039;s Blog</title>
		<link>http://talderman.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://talderman.wordpress.com/osd.xml" title="Tom Alderman&#039;s Blog" />
	<atom:link rel='hub' href='http://talderman.wordpress.com/?pushpress=hub'/>
		<item>
		<title>What is CRUD and REST?</title>
		<link>http://talderman.wordpress.com/2008/06/13/what-is-crud-and-rest/</link>
		<comments>http://talderman.wordpress.com/2008/06/13/what-is-crud-and-rest/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 01:30:00 +0000</pubDate>
		<dc:creator>talderman</dc:creator>
				<category><![CDATA[General Programming]]></category>

		<guid isPermaLink="false">http://talderman.wordpress.com/?p=11</guid>
		<description><![CDATA[There are some terms that I&#8217;m hearing more and more in the programming world, CRUD and REST. What is CRUD? CRUD is an acronym for Create Read Update Delete.  As a programmer / developer most of my time is spent doing crud operations (well at least in my current position). What is REST? REST is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=11&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are some terms that I&#8217;m hearing more and more in the programming world, CRUD and REST.</p>
<h3><strong>What is CRUD?</strong></h3>
<p>CRUD is an acronym for <em><strong><span style="color:#0000ff;">C</span>reate <span style="color:#0000ff;">R</span>ead <span style="color:#0000ff;">U</span><span style="color:#000000;">pdate</span> <span style="color:#0000ff;">D</span>elete</strong></em>.  As a programmer / developer most of my time is spent doing crud operations (well at least in my current position).</p>
<h3><strong>What is REST?</strong></h3>
<p>REST is a acronym for <strong><em>Representational state transfer. </em></strong> Restful Development is a platform independent management and architectural style advocating pragmatic practice with industry standards.  Rest was first coined by Ron Fielding in his doctoral dissertation &#8220;<em>Architectural Styles and the Design of Network-based Software Architectures&#8221; .</em></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/talderman.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/talderman.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/talderman.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/talderman.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/talderman.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/talderman.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/talderman.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/talderman.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/talderman.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/talderman.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/talderman.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/talderman.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/talderman.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/talderman.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/talderman.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/talderman.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=11&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://talderman.wordpress.com/2008/06/13/what-is-crud-and-rest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc507699c046368cf0015eccc5dbb9ef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">talderman</media:title>
		</media:content>
	</item>
		<item>
		<title>OOP (Object Oriented Programming)</title>
		<link>http://talderman.wordpress.com/2008/05/23/oop-object-oriented-programming/</link>
		<comments>http://talderman.wordpress.com/2008/05/23/oop-object-oriented-programming/#comments</comments>
		<pubDate>Fri, 23 May 2008 14:15:20 +0000</pubDate>
		<dc:creator>talderman</dc:creator>
				<category><![CDATA[General Programming]]></category>

		<guid isPermaLink="false">http://talderman.wordpress.com/?p=9</guid>
		<description><![CDATA[For new programmer OOP can be a hard concept to wrap you mind around. In this post my goal is to go over some of the concepts of OOP. Wikipedia&#8217;s definition of OOP is: &#8221;Object-oriented programming (OOP) is a programming paradigm that uses &#8220;objects&#8221; and their interactions to design applications and computer programs. Programming techniques may [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=9&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For new programmer OOP can be a hard concept to wrap you mind around. In this post my goal is to go over some of the concepts of OOP.</p>
<p>Wikipedia&#8217;s definition of OOP is: &#8221;<strong>Object-oriented programming (OOP)</strong> is a <a title="Programming paradigm" href="http://talderman.wordpress.com/wiki/Programming_paradigm">programming paradigm</a> that uses &#8220;<a title="Object (computer science)" href="http://talderman.wordpress.com/wiki/Object_%28computer_science%29">objects</a>&#8221; and their interactions to design applications and computer programs. Programming techniques may include features such as <a title="Information hiding" href="http://talderman.wordpress.com/wiki/Information_hiding">encapsulation</a>, <a class="mw-redirect" title="Module (programming)" href="http://talderman.wordpress.com/wiki/Module_%28programming%29">modularity</a>, <a title="Polymorphism in object-oriented programming" href="http://talderman.wordpress.com/wiki/Polymorphism_in_object-oriented_programming">polymorphism</a>, and <a title="Inheritance (computer science)" href="http://talderman.wordpress.com/wiki/Inheritance_%28computer_science%29">inheritance</a>. It was not commonly used in mainstream software application development until the early 1990s. &#8230;. &#8221;</p>
<p><strong><em>History of OOP</em></strong></p>
<p>SIMULA I (1962-65) and Simula 67 (1967) are the two first object-oriented languages. Simula 67 introduced most of the key concepts of object-oriented programming: both objects and classes, subclasses and virtual procedures, combined with safe referencing and mechanisms for bringing into a program collections of program structures described under a common class heading (prefixed blocks).</p>
<p> Simula 67 was a groundbreaking system that has inspired a large number of other programming languages, and some of these include Pascal, Lisp and in the .net world #C and VB are the most popular. OOP was also important for the development of Graphical user interfaces. This paradigm of programming has also played an important role in the development of event-driven programming.</p>
<p><strong><em>Explanation of OOP concepts</em></strong></p>
<p>The term “Object,” that gives <acronym title="Object-Oriented Programming">OOP</acronym> it’s name, refers to a <em>conceptual</em>object that represents an item in our program or system. This could be anything from an on-line form or a computer file, to a real world object such as a car. Being a car guy this is analogy helps me the most.</p>
<p>This representation consists of <em>attributes</em> &#8211; the characteristics of our object; and <em>methods</em> &#8211; a set of functions and calculations that are either performed to modify the object itself, or are involved in some external effect.</p>
<p>The term “Class” represents the <em>definition</em> (or classification &#8211; class) of our object. For example, if we were to write a class called “car”, we could create any number of instances of that class &#8211; say “Ford”, “Honda” and “Chevy”. Each of these instances is an Object. This illustrates that a class is effectively a <em>set</em> of objects that all share common attributes.</p>
<p>The &#8220;car&#8221; object can do a number of <em>methods</em> or &#8220;actions&#8221;: (beep, start engine, turn on lights, and etc.) Some methods can accept parameters, for instance. Say your car class has a method called &#8220;wipers_on&#8221;, this method take a parameter for the speed of the wipers i.e. (slow, medium, and fast).</p>
<p><em>Polymorphism</em> refers to the ability to process objects differently depending on their data type or class. More specifically, it is the ability to redefine methods for <em>derived classes.</em> For example, given a base class &#8220;shape<em>&#8220;,</em> polymorphism enables you to define different <em>area</em> methods for any number of derived classes, such as circles, rectangles and triangles. No matter what shape an object is, applying the <em>area </em>method to it will return the correct results. Polymorphism is considered to be a requirement of any true object-oriented programming language (OOPL).</p>
<p><em>Inheritance</em> is the process by which objects can acquire the properties of objects of other class. Inheritance provides reusability, like, adding additional features to an existing class without modifying it. This is achieved by deriving a new class from the existing one. The new class will have combined features of both the classes.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/talderman.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/talderman.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/talderman.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/talderman.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/talderman.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/talderman.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/talderman.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/talderman.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/talderman.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/talderman.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/talderman.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/talderman.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/talderman.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/talderman.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/talderman.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/talderman.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=9&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://talderman.wordpress.com/2008/05/23/oop-object-oriented-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc507699c046368cf0015eccc5dbb9ef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">talderman</media:title>
		</media:content>
	</item>
		<item>
		<title>System.Diagnostics.Process</title>
		<link>http://talderman.wordpress.com/2008/05/21/systemdiagnosticsprocess/</link>
		<comments>http://talderman.wordpress.com/2008/05/21/systemdiagnosticsprocess/#comments</comments>
		<pubDate>Wed, 21 May 2008 14:05:31 +0000</pubDate>
		<dc:creator>talderman</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://talderman.wordpress.com/?p=8</guid>
		<description><![CDATA[The Process class is very useful, I use the Process class for running third party and legacy programs. For example, I have an app written by a vendor that I need SQL functionality as well as the programs operation. These SQL tables contain data like when the program started, the name of the file processed, the status of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=8&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Process class is very useful, I use the Process class for running third party and legacy programs. For example, I have an app written by a vendor that I need SQL functionality as well as the programs operation. These SQL tables contain data like when the program started, the name of the file processed, the status of the operation (running, failed, or successful), and time the process finished. The vendors program is a command-line program written in C++ unfortunately I couldn&#8217;t even use interop.</p>
<p>The StartInfo property has list of the properties and some of these are:</p>
<address>Filename  <span style="color:#808080;">value =</span> <span style="color:#0000ff;">String </span></address>
<address>Arguments <span style="color:#808080;">value =</span> <span style="color:#0000ff;">String</span></address>
<address>WorkingDirectory <span style="color:#808080;">value =</span> <span style="color:#0000ff;">String</span></address>
<address>UseShellExcute <span style="color:#808080;">value =</span> <span style="color:#0000ff;">Boolean</span></address>
<address>RedirectStandardError <span style="color:#808080;">value =</span> <span style="color:#0000ff;">Boolean</span></address>
<address>RedirectStandardOutput <span style="color:#808080;">value =</span> <span style="color:#0000ff;">Boolean</span></address>
<address>CreateNoWindow <span style="color:#999999;"><span style="color:#808080;">value =</span> </span><span style="color:#0000ff;">Boolean</span></address>
<p><span style="color:#000000;">Some of the methods are:</span></p>
<address>Start <span style="color:#808080;">returns</span> <span style="color:#0000ff;">Boolean</span></address>
<address>CloseMainWindow <span style="color:#808080;">returns</span> <span style="color:#0000ff;">Boolean</span></address>
<address>Kill  </address>
<address>Dispose</address>
<address></address>
<address></address>
<address></address>
<p><pre class="brush: vb;">
Imports System.Diagnostics

Module Module1
   Sub  Main()
      Dim instance As New Process
      instance.StartInfo.FileName = &quot;notepad.exe&quot;
      instance.StartInfo.WorkingDirectory = &quot;C:\&quot;
      instance.StartInfo.UseShellExecute = True
      instance.Start()
      instance.WaitForExit()
   End Sub
End Module
</pre></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/talderman.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/talderman.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/talderman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/talderman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/talderman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/talderman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/talderman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/talderman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/talderman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/talderman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/talderman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/talderman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/talderman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/talderman.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/talderman.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/talderman.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=8&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://talderman.wordpress.com/2008/05/21/systemdiagnosticsprocess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc507699c046368cf0015eccc5dbb9ef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">talderman</media:title>
		</media:content>
	</item>
		<item>
		<title>Cryptography in .NET Part 2</title>
		<link>http://talderman.wordpress.com/2008/05/20/cryptography-in-net-part-2/</link>
		<comments>http://talderman.wordpress.com/2008/05/20/cryptography-in-net-part-2/#comments</comments>
		<pubDate>Tue, 20 May 2008 20:14:27 +0000</pubDate>
		<dc:creator>talderman</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://talderman.wordpress.com/?p=7</guid>
		<description><![CDATA[This is the second in a series of post covering Cryptography in .net or the System.Security.Cryptography namespace.  RC2 RC2 method of encryption (block cipher). This algorthim also uses the symmetric method of encrypting data. Unlike DES, RC2 uses variable key sizes giving greater protection against bruteforce attacks.  RC2 ciphers are vulnerable to related-key attacks using chosen plaintext. RC2 is relatively efficiently implemented and is well documented. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=7&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the second in a series of post covering Cryptography in .net or the System.Security.Cryptography namespace. </p>
<p><em><strong>RC2</strong></em></p>
<p>RC2 method of encryption (block cipher). This algorthim also uses the symmetric method of encrypting data. Unlike DES, RC2 uses variable key sizes giving greater protection against bruteforce attacks. </p>
<p>RC2 ciphers are vulnerable to related-key attacks using chosen plaintext. RC2 is relatively efficiently implemented and is well documented.</p>
<p>The properties and methods are much the same for this as in my post <a title="Cryptography in .NET " href="http://talderman.wordpress.com/2008/05/02/cryptography-in-net/">Cryptography in .NET </a>I&#8217;m not going to post any code.</p>
<p> For more information:</p>
<p>just <a title="google" href="http://google.com" target="_blank">googleit</a></p>
<p> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/talderman.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/talderman.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/talderman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/talderman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/talderman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/talderman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/talderman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/talderman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/talderman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/talderman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/talderman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/talderman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/talderman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/talderman.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/talderman.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/talderman.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=7&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://talderman.wordpress.com/2008/05/20/cryptography-in-net-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc507699c046368cf0015eccc5dbb9ef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">talderman</media:title>
		</media:content>
	</item>
		<item>
		<title>Cryptography in .NET</title>
		<link>http://talderman.wordpress.com/2008/05/02/cryptography-in-net/</link>
		<comments>http://talderman.wordpress.com/2008/05/02/cryptography-in-net/#comments</comments>
		<pubDate>Fri, 02 May 2008 18:14:25 +0000</pubDate>
		<dc:creator>talderman</dc:creator>
				<category><![CDATA[.net]]></category>

		<guid isPermaLink="false">http://talderman.wordpress.com/?p=5</guid>
		<description><![CDATA[My Disclaimer: The purpose of this post is only to show methods of encryption used in the .net framework. In no way do I claim to be any expert in cryptography. Again my only goal here is to show the methods used in the .net framework. This post was inspired both by &#8220;Better Know a Framework&#8221; from DotNetRocks. And a talk by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=5&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My Disclaimer:</p>
<p>The purpose of this post is only to show methods of encryption used in the .net framework. In no way do I claim to be any expert in cryptography. Again my only goal here is to show the methods used in the .net framework. This post was inspired both by &#8220;Better Know a Framework&#8221; from <a href="http://dotnetrocks.com" target="_blank">DotNetRocks</a>. And a talk by <a href="http://moserware.com" target="_blank">Jeff Moser</a>, given at the Indy Code Camp 2008.</p>
<p>The System.Security.Cyptopgraphy namspace contains may classes and methods for encrypting and decrypting data. In this post I&#8217;m going to discuss the DES method of encryption. In later posts I plan on discussing each of the implementations symmetric and asymmetric cryptography in the .net framework.</p>
<p>The DES method uses the symmetric encryption algorithm (also called a cipher). Symmetric encryption is fast and well suited for encrypting large quantities of data.</p>
<p><em>DES Concerns</em></p>
<p>The DES algorithm is now considered by today&#8217;s standards to be insecure, mainly do to the fact that it uses a 56-bit key. Another disadvantages of DES is that because it uses symmetric encyption it presumes that two parties have already agreed on a key. The key itself cannot be encrypted and depends heavily on a secure channel to send the key to the other party. For example: If you send the key to your friend in an email, but your email was captured. Or you could relay the key over the phone, if your phone were tapped or someone overheard your conversation. The result is a third part has your key.</p>
<p> The following code is a very basic example on how to encrypt a text file using DES. </p>
<p><pre class="brush: vb;"> 

Imports System.Security.Cryptography
Imports System.Text
Imports System.IO

Module Module1

    Sub Main()
        MyDESEncyption()
    End Sub

    Sub MyDESEncyption()

        Dim input As String = &quot;C:\TestFile.txt&quot;
        Dim output As String = &quot;C:\TestFile.txt.enc&quot;

        'File Stream object
        Dim infile As FileStream = New FileStream(input, FileMode.Open, FileAccess.Read)
        Dim outfile As FileStream = New FileStream(output, FileMode.OpenOrCreate, FileAccess.Write)

        'Create Symmetric Algortithm object as a new DES Algorithm object
        Dim DESAlg As SymmetricAlgorithm = New DESCryptoServiceProvider

        'MustOverride method that generates a random key
        DESAlg.GenerateKey()

        'Read plain text file
        Dim fileData(infile.Length - 1) As Byte
        infile.Read(fileData, 0, CType(infile.Length, Integer))

        'Create the ICryptoTransform object
        Dim encytptor As ICryptoTransform = DESAlg.CreateDecryptor

        'Create the CryptoStream object
        Dim encryptStrm As CryptoStream = New CryptoStream(outfile, encytptor, CryptoStreamMode.Write)

        'Write to the CryptoStream
        encryptStrm.Write(fileData, 0, fileData.Length)

        'Close the file hanles
        infile.Close()
        outfile.Close()

    End Sub
End Module

</pre></p>
<p>For more information on DES cyprography:</p>
<div><a href="http://en.wikipedia.org/wiki/Data_Encryption_Standard">http://en.wikipedia.org/wiki/Data_Encryption_Standard</a></div>
<div><a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.des.aspx">http://msdn.microsoft.com/en-us/library/system.security.cryptography.des.aspx</a></div>
<div><a title="google" href="http://google.com" target="_blank">http://google.com</a></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/talderman.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/talderman.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/talderman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/talderman.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/talderman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/talderman.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/talderman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/talderman.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/talderman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/talderman.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/talderman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/talderman.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/talderman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/talderman.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/talderman.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/talderman.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=5&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://talderman.wordpress.com/2008/05/02/cryptography-in-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc507699c046368cf0015eccc5dbb9ef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">talderman</media:title>
		</media:content>
	</item>
		<item>
		<title>New to Blogging</title>
		<link>http://talderman.wordpress.com/2008/04/29/new-to-blogging/</link>
		<comments>http://talderman.wordpress.com/2008/04/29/new-to-blogging/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 14:23:52 +0000</pubDate>
		<dc:creator>talderman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://talderman.wordpress.com/?p=4</guid>
		<description><![CDATA[This is my first blog post&#8230; In this blog I hope to talk technology and about my growing skillz as a developer.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=4&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is my first blog post&#8230; In this blog I hope to talk technology and about my growing skillz as a developer.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/talderman.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/talderman.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/talderman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/talderman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/talderman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/talderman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/talderman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/talderman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/talderman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/talderman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/talderman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/talderman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/talderman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/talderman.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/talderman.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/talderman.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=talderman.wordpress.com&amp;blog=3606527&amp;post=4&amp;subd=talderman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://talderman.wordpress.com/2008/04/29/new-to-blogging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dc507699c046368cf0015eccc5dbb9ef?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">talderman</media:title>
		</media:content>
	</item>
	</channel>
</rss>
