Skip to content
Vurdalakov edited this page Aug 13, 2015 · 1 revision

Overview

A C# implementation of CRC32 hash algorithm that is inherited from System.Security.Cryptography.HashAlgorithm class.

Source code

Usage

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);

License

Distributed under the MIT license.

Clone this wiki locally