UNPKG

@plugnet/util-crypto

Version:
16 lines (15 loc) 459 B
/** * @name blake2AsHex * @summary Creates a blake2b hex from the input. * @description * From a `Uint8Array` input, create the blake2b and return the result as a hex string with the specified `bitLength`. * @example * <BR> * * ```javascript * import { blake2AsHex } from '@plugnet/util-crypto'; * * blake2AsHex('abc'); // => 0xba80a53f981c4d0d * ``` */ export default function blake2AsHex(data: Uint8Array | string, bitLength?: number): string;