Skip to main content

Crypto module · hash implementation

Use CRC32C where the storage format names it.

CRC32CHash exposes the Castagnoli checksum through a small static and streaming-friendly API for format validation and block integrity.

Use it for integrity

Match the checksum to the format.

CRC32C is a fast non-cryptographic checksum used by systems and storage formats that specify the Castagnoli polynomial.

Input

A byte array or binary batch

Output

CRC32C checksum string

Strength

Fast detection of accidental changes

Not for

Cryptographic authentication

Detailed guide

CRC32CHash details

The reference below documents the static method and streaming behavior.

CRC32CHash

From-v2.3

Static Methods​

CRC32CHash.hash(data: ArrayBuffer, options?: object): Promise<string>​

Calculates the CRC32c hash of a byte array.

Remarks​

  • This transform supports streaming hashing.