Class CRC32

This class provides functions that calculate CRC-32 values.

System.Object
  System.Security.Cryptography.HashAlgorithm
    Stonefield.Library.CRC32
public class CRC32 : HashAlgorithm

Remarks

This was adapted from http://damieng.com/blog/2006/08/08/calculating_crc32_in_c_and_net This returns the same value as the VFP SYS(2007, value, 0, 1)

Class Members

MemberDescription

Constructor

This constructor uses default values for the polynomial and seed.

ComputeChecksum

Computes the checksum for the specified string.

public static UInt32 ComputeChecksum(string value)

public static UInt32 ComputeChecksum(Byte[] bytes)

public static UInt32 ComputeChecksum(UInt32 seed,     Byte[] bytes)

public static UInt32 ComputeChecksum(UInt32 polynomial,     UInt32 seed,     Byte[] bytes)

Initialize

Initializes the CRC.

public virtual void Initialize()

HashSize

The hash size.

Requirements

Namespace: Stonefield.Library
Assembly: library.dll