CRC32

Implementation of CRC32 digester.

CRC32 (Cyclic Redundancy Check 32) is a widely used error-detecting code algorithm that produces a 32-bit (4-byte) hash value. It is commonly used in network communications, storage systems, and other applications where data integrity is crucial.

Members

Static functions

hash
ubyte[] hash(const(ubyte[]) data)

Computes the CRC32 hash digest of the given data.

Static variables

crcTable
uint[256] crcTable;
Undocumented in source.

Examples

import tern.digest.crc;

ubyte[] data = [1, 2, 3, 4, 5];
auto hashValue = CRC32.hash(data);

Meta