-
Notifications
You must be signed in to change notification settings - Fork 3
CRC32
Vurdalakov edited this page Aug 13, 2015
·
1 revision
A C# implementation of CRC32 hash algorithm that is inherited from System.Security.Cryptography.HashAlgorithm class.
CRC32Managed crc32Managed = new CRC32Managed();
using (Stream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read))
{
crc32Managed.ComputeHash(stream);
}
UInt32 hash = crc32Managed.CRC32Hash;
Console.WriteLine("{0}", hash);
Distributed under the MIT license.