Security & crypto4 exports
Raw Markdown/hash
Fast non-cryptographic hash algorithms: AHash, FNV-1a, SipHash-1-3, and XXHash64.
Functions & symbols#
a-hash#
function
Computes a fast non-cryptographic 64-bit AHash digest (not suitable for passwords or MACs).
| Parameter | Type | Optional | Description |
|---|---|---|---|
input | String | Slab | required | Data to hash |
Returns:
Any(hash/a-hash "cache-key-42")fnv-1a#
function
Computes a fast non-cryptographic 64-bit FNV-1a digest (not suitable for passwords or MACs).
| Parameter | Type | Optional | Description |
|---|---|---|---|
input | String | Slab | required | Data to hash |
Returns:
Any(hash/fnv-1a "cache-key-42")sip-hash-1-3#
function
Computes a fast non-cryptographic 64-bit SipHash-1-3 digest (not suitable for passwords or MACs).
| Parameter | Type | Optional | Description |
|---|---|---|---|
input | String | Slab | required | Data to hash |
Returns:
Any(hash/sip-hash-1-3 "cache-key-42")xx-hash-64#
function
Computes a fast non-cryptographic 64-bit XXHash64 digest (not suitable for passwords or MACs).
| Parameter | Type | Optional | Description |
|---|---|---|---|
input | String | Slab | required | Data to hash |
Returns:
Any(hash/xx-hash-64 "cache-key-42")