hash8

Hashes a byte stream with the specified cryptographic key

  1. auto hash8(ubyte[] bytes, ulong[2] key)
    hash8
    (
    ubyte[] bytes
    ,
    ulong[2] key = [0UL, 0UL]
    )
  2. auto hash8(string s, ulong[2] key)

Parameters

bytes ubyte[]

Array of unsigned bytes.

key ulong[2]

Array of two ulong for low and high parts of 128-bit key (default: zero key)

Typical usage:

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

Meta