Skip to main content

Module hasher

Module hasher 

Source
Expand description

Central hashing utility using BLAKE3.

Replaces scattered MD5 helpers with a single, fast, non-cryptographic hash function. BLAKE3 runs at 8+ GB/s (vs MD5 ~3 GB/s) and produces collision-resistant 256-bit digests.

Functionsยง

hash_hex
Return a hex-encoded BLAKE3 hash of the input bytes.
hash_short
Short hash (first 16 hex chars = 64 bits) for cache keys and fingerprints.
hash_str
Convenience: hash a string slice and return hex digest.