hash

Hashes a byte stream with the specified cryptographic key.

hash
(
ubyte[] bytes
,
ubyte[] key = [0x0]
)

Parameters

bytes ubyte[]

Array of unsigned bytes.

key ubyte[]

Array of unsigned bytes for 128-bit key (default: zero key).

Return Value

Type: auto

64-bit hash of passed bytes.

Typical usage:

auto hash = hash8([0x65, 0x67, 0x67, 0x00]);

Meta