CRC procedure with C#
Can anyone help me create a method to calculate the CRC of a network with C#?
I need this program to deliver data packets over a network as a networking project.
thanks
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Dec 6, 2009, 6:01 AM EST
if my answer helps you then check "Do you like this answer" check box please :)
Crc32 crc32 = new Crc32(); String hash = String.Empty; using (FileStream fs = File.Open("c:\\myfile.txt", FileMode.Open)) { foreach (byte b in crc32.ComputeHash(fs)) { hash += b.ToString("x2").ToLower(); } } Console.WriteLine("CRC-32 is {0}", hash);