UNPKG

@plugnet/util-crypto

Version:
17 lines (16 loc) 509 B
/// <reference types="node" /> /** * @name xxhash64AsHex * @summary Creates a xxhash hex from the input. * @description * From either a `string`, `Uint8Array` or a `Buffer` input, create the xxhash and return the result as a hex string. * @example * <BR> * * ```javascript * import { xxhash64AsHex } from '@plugnet/util-crypto'; * * xxhash64AsHex('abcd', 0xabcd)); // => 0xe29f70f8b8c96df7 * ``` */ export default function xxhash64AsHex(data: Buffer | Uint8Array | string, seed: number): string;