<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippet Revisions</title>
		<link>http://www.bytemycode.com</link>
		<description>Revisions for this snippet.</description>
		<pubDate>Sat, 11 Oct 2008 02:49:25 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	
	<item>
		<title>RC4 Encryption 1</title>
		<link>http://www.bytemycode.com/snippets/snippet/93/1/</link>
		<comments>http://www.bytemycode.com/snippets/snippet/93/comments/</comments>
		<pubDate>Fri, 17 Feb 2006 16:49:44 +0000</pubDate>
		<dc:creator>RRSands</dc:creator>
		<category>CSharp, Encryption, Security</category>
		<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/93/</guid>
		<description>
			<![CDATA[
				<p>From RSA Security's website: <br />"RC4 is a stream cipher designed by Rivest for RSA Data Security (now RSA Security).   It is a variable key-size stream cipher with byte-oriented operations. The algorithm is based on the use of a random permutation. Analysis shows that the period of the cipher is overwhelmingly likely to be greater than 10^100. Eight to sixteen machine operations are required per output byte, and the cipher can be expected to run very quickly in software. Independent analysts have scrutinized the algorithm and it is considered secure."<br /><br />This implementation encodes the byte stream to be encrypted "in-place".<br /><br />Example:<br /><code lang="CSharp">Byte[] Key = new Byte[5] { 12, 34, 22, 12, 32 };<br />Byte[] B = new Byte[10] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };<br />// Examine B array before and after this next call.<br />RC4(ref B, Key);<br />// Examine B array before and after this next call.<br />RC4(ref B, Key);</code></p>
			]]>
		</description>
	</item>

	
	</channel>
</rss>