nupp.hash

General-purpose noncryptographic hashing. For message digests use nupp.digest; for error-detection checksums use nupp.checksum.

Module contents

Functions

FunctionKindDescription
fnv1a64functionHashes bytes with FNV-1a over 64 bits.

Functions#

fnv1a64function#

function fnv1a64(value: string | ByteView): string

Hashes bytes with FNV-1a over 64 bits.

Arguments

NameTypeDescription
valuestring | ByteView

the bytes to hash

Returns

TypeDescription
string

the hash, as sixteen lowercase hexadecimal digits