Skip to content

hash

Short, deterministic non-cryptographic hashing and id minting.

fnvHash / fnvHashWithOptions produce a stable FNV-1a digest over arbitrary structured input; toBase32 encodes a 32-bit integer compactly; id mints v4 UUIDs (or short hex slices). All browser-safe - built on globalThis.crypto, no node:crypto import. Never use these for tokens, signatures, or anything an attacker shouldn’t be able to forge.