tags:

views:

3918

answers:

4

How do I calculate the CRC32 (Cyclic Redundancy Checksum) of a string in .NET?

+6  A: 

This guy seems to have your answer.

http://damieng.com/blog/2006/08/08/Calculating_CRC32_in_C_and_NET

Pete
+1  A: 

Another example from CodeProject:

http://www.codeproject.com/KB/cs/marcelcrcencoding.aspx

lnediger
+3  A: 

I also have a crc32 algorithm here, in VB.NET

http://www.codinghorror.com/blog/archives/000083.html

Jeff Atwood
I actually like @Pete's solution because it doesn't use a lookup table, but thanks for the VB.NET alternative.
Nick Berardi
+2  A: 

There's a CrcCalculatorStream included in DotNetZip. The source is available here.

Cheeso