Tanguv0.35.0
Security & crypto4 exports
Raw Markdown

/hash

Fast non-cryptographic hash algorithms: AHash, FNV-1a, SipHash-1-3, and XXHash64.

(use /hash)

Functions & symbols#

a-hash#

function
(a-hash input) -> Int

Computes a fast non-cryptographic 64-bit AHash digest (not suitable for passwords or MACs).

ParameterTypeOptionalDescription
inputString | SlabrequiredData to hash
Returns:Any
(hash/a-hash "cache-key-42")

fnv-1a#

function
(fnv-1a input) -> Int

Computes a fast non-cryptographic 64-bit FNV-1a digest (not suitable for passwords or MACs).

ParameterTypeOptionalDescription
inputString | SlabrequiredData to hash
Returns:Any
(hash/fnv-1a "cache-key-42")

sip-hash-1-3#

function
(sip-hash-1-3 input) -> Int

Computes a fast non-cryptographic 64-bit SipHash-1-3 digest (not suitable for passwords or MACs).

ParameterTypeOptionalDescription
inputString | SlabrequiredData to hash
Returns:Any
(hash/sip-hash-1-3 "cache-key-42")

xx-hash-64#

function
(xx-hash-64 input) -> Int

Computes a fast non-cryptographic 64-bit XXHash64 digest (not suitable for passwords or MACs).

ParameterTypeOptionalDescription
inputString | SlabrequiredData to hash
Returns:Any
(hash/xx-hash-64 "cache-key-42")