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.

Parameters

value: any

Object or value to be hashed.

bitLength?: BitLength

nonce?: string

Optional nonce to obscure hashed values that could be guessed.

Returns

HexString

Blake2b hash as hex string.

Source

utils/src/Crypto.ts:188