<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for Real Coders Coding</title>
	<atom:link href="http://blog.realcoderscoding.com/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.realcoderscoding.com</link>
	<description></description>
	<pubDate>Thu, 09 Sep 2010 09:57:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>Comment on System.Threading.Timer Stops Firing in Windows Server 2003 SP1 by Olin Hamilton</title>
		<link>http://blog.realcoderscoding.com/index.php/2008/09/systemthreadingtimer-stops-firing-in-windows-server-2003-sp1/#comment-1385</link>
		<dc:creator>Olin Hamilton</dc:creator>
		<pubDate>Thu, 06 Aug 2009 19:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realcoderscoding.com/?p=92#comment-1385</guid>
		<description>I too am experiencing this .NET 2.0 SP2 on Win2k3 SP2 x32.  Does anyone know of a fix?</description>
		<content:encoded><![CDATA[<p>I too am experiencing this .NET 2.0 SP2 on Win2k3 SP2 x32.  Does anyone know of a fix?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on .Net Encryption simple AES wrapper by Blue Beetle</title>
		<link>http://blog.realcoderscoding.com/index.php/2008/07/dot-net-encryption-simple-aes-wrapper/#comment-896</link>
		<dc:creator>Blue Beetle</dc:creator>
		<pubDate>Wed, 20 May 2009 20:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realcoderscoding.com/?p=10#comment-896</guid>
		<description>I've enforced some wrapping on the code blocks so, hopefully, thing's won't get clipped in the browser.  


You may still end up with artifacts (like extra line breaks, html constants, etc.) if you cut-and-paste.  There are just so many apps to paste from and so many to paste into that there is no cureall.  Still, hopefully the highlighting, etc. will help and, remember, if you see ampersands (&#38;), SGML tags, etc. in your paste, they're html translations of C# (almost never valid C# themselves).</description>
		<content:encoded><![CDATA[<p>I&#8217;ve enforced some wrapping on the code blocks so, hopefully, thing&#8217;s won&#8217;t get clipped in the browser.  </p>
<p>You may still end up with artifacts (like extra line breaks, html constants, etc.) if you cut-and-paste.  There are just so many apps to paste from and so many to paste into that there is no cureall.  Still, hopefully the highlighting, etc. will help and, remember, if you see ampersands (&amp;), SGML tags, etc. in your paste, they&#8217;re html translations of C# (almost never valid C# themselves).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on .Net Encryption simple AES wrapper by Blue Beetle</title>
		<link>http://blog.realcoderscoding.com/index.php/2008/07/dot-net-encryption-simple-aes-wrapper/#comment-895</link>
		<dc:creator>Blue Beetle</dc:creator>
		<pubDate>Wed, 20 May 2009 19:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realcoderscoding.com/?p=10#comment-895</guid>
		<description>There was definitely a problem in GetKey, p.LegalKeySizes[0].MinSize returns a number of bits, and what's needed is a number of bytes, so, I've fixed this in the for loop boundaries and count conditions (it should also be a bit more readable).  Thanks for seeing that bug, Michael.  

the lt; and gt; things are html constants not C#, they will sometimes appear if a less-than or greater-than symbol gets improperly translated by the blog -- those are display issues and I hope those are fixed.  

There are a number of suggestions already in the article about how to make things stronger.  The whole idea here (q.v. the title) is a Simple Wrapper.  I'd recommend (again, as above) anybody who wants to use Aes to its full strength should not use a wrapper but should use the native .Net objects directly.  

Hardcoding the key (as I did in the button click) is clearly a point of vulnerability (typically the calling app should acquire encryption keys from a trusted source via protected delivery), the key is explicit here for clarity, not security.  

There is an infinite regression of how to make a given encryption stronger.  A simple example is how the DES encryption, once it became trivially crackable, morphed into the triple-DES algorithm (basically a hack -- just keep a-cryptin' it.)  

Please feel free to suggest stronger GetKey methods, password delivery modules, etc. in the comments.  
-BlueBeetle</description>
		<content:encoded><![CDATA[<p>There was definitely a problem in GetKey, p.LegalKeySizes[0].MinSize returns a number of bits, and what&#8217;s needed is a number of bytes, so, I&#8217;ve fixed this in the for loop boundaries and count conditions (it should also be a bit more readable).  Thanks for seeing that bug, Michael.  </p>
<p>the lt; and gt; things are html constants not C#, they will sometimes appear if a less-than or greater-than symbol gets improperly translated by the blog &#8212; those are display issues and I hope those are fixed.  </p>
<p>There are a number of suggestions already in the article about how to make things stronger.  The whole idea here (q.v. the title) is a Simple Wrapper.  I&#8217;d recommend (again, as above) anybody who wants to use Aes to its full strength should not use a wrapper but should use the native .Net objects directly.  </p>
<p>Hardcoding the key (as I did in the button click) is clearly a point of vulnerability (typically the calling app should acquire encryption keys from a trusted source via protected delivery), the key is explicit here for clarity, not security.  </p>
<p>There is an infinite regression of how to make a given encryption stronger.  A simple example is how the DES encryption, once it became trivially crackable, morphed into the triple-DES algorithm (basically a hack &#8212; just keep a-cryptin&#8217; it.)  </p>
<p>Please feel free to suggest stronger GetKey methods, password delivery modules, etc. in the comments.<br />
-BlueBeetle</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on .Net Encryption simple AES wrapper by Bogdan Varlamov (a.k.a. Phantom Stranger)</title>
		<link>http://blog.realcoderscoding.com/index.php/2008/07/dot-net-encryption-simple-aes-wrapper/#comment-893</link>
		<dc:creator>Bogdan Varlamov (a.k.a. Phantom Stranger)</dc:creator>
		<pubDate>Wed, 20 May 2009 18:19:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realcoderscoding.com/?p=10#comment-893</guid>
		<description>Michael, &#38;lt; is the less than sign; It should display the sign correctly now.</description>
		<content:encoded><![CDATA[<p>Michael, &amp;lt; is the less than sign; It should display the sign correctly now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on .Net Encryption simple AES wrapper by Gary Walker</title>
		<link>http://blog.realcoderscoding.com/index.php/2008/07/dot-net-encryption-simple-aes-wrapper/#comment-792</link>
		<dc:creator>Gary Walker</dc:creator>
		<pubDate>Fri, 24 Apr 2009 13:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realcoderscoding.com/?p=10#comment-792</guid>
		<description>I\'ve tried viewing this page with IE6, FireFox 3, Opera 9 and Chrome. The code is partially obscured by the links on the right in every case.</description>
		<content:encoded><![CDATA[<p>I\&#8217;ve tried viewing this page with IE6, FireFox 3, Opera 9 and Chrome. The code is partially obscured by the links on the right in every case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on .Net Encryption simple AES wrapper by Michael Yang</title>
		<link>http://blog.realcoderscoding.com/index.php/2008/07/dot-net-encryption-simple-aes-wrapper/#comment-661</link>
		<dc:creator>Michael Yang</dc:creator>
		<pubDate>Sat, 04 Apr 2009 01:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realcoderscoding.com/?p=10#comment-661</guid>
		<description>I fixed above error message. thanks. But what\'s i &#60;?

Thanks
Michael</description>
		<content:encoded><![CDATA[<p>I fixed above error message. thanks. But what\&#8217;s i &lt;?</p>
<p>Thanks<br />
Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on .Net Encryption simple AES wrapper by Michael Yang</title>
		<link>http://blog.realcoderscoding.com/index.php/2008/07/dot-net-encryption-simple-aes-wrapper/#comment-657</link>
		<dc:creator>Michael Yang</dc:creator>
		<pubDate>Fri, 03 Apr 2009 23:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realcoderscoding.com/?p=10#comment-657</guid>
		<description>Got error message:Error	5	The type or namespace name \'AesCryptoServiceProvider\' could not be found (are you missing a using directive or an assembly reference?)	
Could you help me ?

Thanks
Michael Yang</description>
		<content:encoded><![CDATA[<p>Got error message:Error	5	The type or namespace name \&#8217;AesCryptoServiceProvider\&#8217; could not be found (are you missing a using directive or an assembly reference?)<br />
Could you help me ?</p>
<p>Thanks<br />
Michael Yang</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on System.Threading.Timer Stops Firing in Windows Server 2003 SP1 by Chris Redekop</title>
		<link>http://blog.realcoderscoding.com/index.php/2008/09/systemthreadingtimer-stops-firing-in-windows-server-2003-sp1/#comment-566</link>
		<dc:creator>Chris Redekop</dc:creator>
		<pubDate>Sat, 28 Mar 2009 20:53:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realcoderscoding.com/?p=92#comment-566</guid>
		<description>I am also having this problem in .NET 2.0 SP2 on Win2k3 SP2 x64....I can\'t find anything on the web about it tho....is there a hotfix available for .NET 2.0?</description>
		<content:encoded><![CDATA[<p>I am also having this problem in .NET 2.0 SP2 on Win2k3 SP2 x64&#8230;.I can\&#8217;t find anything on the web about it tho&#8230;.is there a hotfix available for .NET 2.0?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on .Net Encryption simple AES wrapper by Johnny casey</title>
		<link>http://blog.realcoderscoding.com/index.php/2008/07/dot-net-encryption-simple-aes-wrapper/#comment-462</link>
		<dc:creator>Johnny casey</dc:creator>
		<pubDate>Thu, 12 Feb 2009 09:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realcoderscoding.com/?p=10#comment-462</guid>
		<description>&lt;!--more--&gt;You have a serious bug in the GetKey function.  Instead of: 
&lt;pre lang="csharp"&gt;kList.Add(kRaw[i % kRaw.Length]);&lt;/pre&gt;

it should be: 

&lt;pre lang="csharp"&gt;kList.Add(kRaw[(i / 8 ) % kRaw.Length]);&lt;/pre&gt;

Otherwise keying material of length 8 will only use the first letter.

I would also point out that while padding up to the full key length is a good idea, second guessing what the key should be can lead to incompatibilities.

And generating and prepending a random key would be a lot more secure.</description>
		<content:encoded><![CDATA[<p><!--more-->You have a serious bug in the GetKey function.  Instead of: </p>
<pre lang="csharp">kList.Add(kRaw[i % kRaw.Length]);</pre>
<p>it should be: </p>
<pre lang="csharp">kList.Add(kRaw[(i / 8 ) % kRaw.Length]);</pre>
<p>Otherwise keying material of length 8 will only use the first letter.</p>
<p>I would also point out that while padding up to the full key length is a good idea, second guessing what the key should be can lead to incompatibilities.</p>
<p>And generating and prepending a random key would be a lot more secure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on System.Threading.Timer Stops Firing in Windows Server 2003 SP1 by Gerardo Palazuelos</title>
		<link>http://blog.realcoderscoding.com/index.php/2008/09/systemthreadingtimer-stops-firing-in-windows-server-2003-sp1/#comment-149</link>
		<dc:creator>Gerardo Palazuelos</dc:creator>
		<pubDate>Sun, 09 Nov 2008 10:00:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.realcoderscoding.com/?p=92#comment-149</guid>
		<description>Hi,
In 2006 we ran on this problem. Win 2003 Server SP1 and .NET 1.1. (shortly) I had 1 Windows Service that instantiates 1 "Adquisition" class 10+ times that implements 2 Timers each one. During the errors, we tested System.Threading.Timers and System.Timers.Timer; so we was having the problem with both Timer's class.

After a while, we found the fix you're referring (http://support.microsoft.com/?kbid=900822). We applied (240661_ENU_i386_zip.exe) and everythings works correctly for a long while!

Recently (1 month ago), Win 2003 Server SP2 was installed and we're running in the same situation again. We used to have like 20 "Adquisition" classes before Win 2003 Server SP2 and everything was OK!... now we're running in the same issues you described in your post: timer's events stop firing (or as MS said: timer event is never signaled).

I'm going to talk with MS guys because my problem is on a production server and my application is prioritary (it's crucial for the company)...

If anybody knows some fix/trick my contact is gpalazuelos at vai-ingdesi dot com. 

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
In 2006 we ran on this problem. Win 2003 Server SP1 and .NET 1.1. (shortly) I had 1 Windows Service that instantiates 1 &#8220;Adquisition&#8221; class 10+ times that implements 2 Timers each one. During the errors, we tested System.Threading.Timers and System.Timers.Timer; so we was having the problem with both Timer&#8217;s class.</p>
<p>After a while, we found the fix you&#8217;re referring (http://support.microsoft.com/?kbid=900822). We applied (240661_ENU_i386_zip.exe) and everythings works correctly for a long while!</p>
<p>Recently (1 month ago), Win 2003 Server SP2 was installed and we&#8217;re running in the same situation again. We used to have like 20 &#8220;Adquisition&#8221; classes before Win 2003 Server SP2 and everything was OK!&#8230; now we&#8217;re running in the same issues you described in your post: timer&#8217;s events stop firing (or as MS said: timer event is never signaled).</p>
<p>I&#8217;m going to talk with MS guys because my problem is on a production server and my application is prioritary (it&#8217;s crucial for the company)&#8230;</p>
<p>If anybody knows some fix/trick my contact is gpalazuelos at vai-ingdesi dot com. </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
