UNPKG

hash-fns

Version:

easily create, assess, and assure hashes within a pit-of-success

13 lines (12 loc) 371 B
import { Hash } from '../../domain/Hash'; /** * a simple function which converts a string into a shake256 hash * * shake256 supports arbitrary output length (in bytes) * * ref: * - https://nodejs.org/api/crypto.html#crypto-createthehashalgorithm-options */ export declare const asHashShake256: (message: string, options?: { bytes: number; }) => Promise<Hash>;