Skip to main content

Crypto module · hash implementation

Add a fast checksum to a binary pipeline.

CRC32Hash provides the shared Hash interface for integrity checks and streaming transforms where a cryptographic digest is not required.

Use it for integrity

Checksum bytes while they move.

CRC32 is useful for detecting accidental corruption and validating blocks during transfer. It is not intended to provide cryptographic security.

Input

ArrayBuffer or async binary batches

Output

CRC32 checksum in the Hash result encoding

Strength

Fast accidental-corruption detection

Not for

Authentication or adversarial integrity

Detailed guide

CRC32Hash details

The reference below documents the constructor, shared interface, and streaming behavior.

CRC32Hash

From-v3.0

Calculates the CRC32C hash.

Interface​

Implements the Hash API.

Methods​

constructor(options?: object)​

Remarks​

  • This transform supports streaming hashing.