Skip to content

hashObjectAsHexStr

hashObjectAsHexStr(value, bitLength?, nonce?): HexString

Hashes numbers, booleans, and objects by stringifying them. Object keys are sorted to yield consistent hashing.

value: any

Object or value to be hashed.

bitLength?: BitLength

nonce?: string

Optional nonce to obscure hashed values that could be guessed.

HexString

Blake2b hash as hex string.

utils/src/Crypto.ts:188