hash8

Hashes a string with the specified cryptographic key.

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

Parameters

key ulong[2]

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

Return Value

Type: auto

64-bit hash of passed bytes.

Typical usage:

auto hash = hash8(`Sample`);

Meta