UNPKG

@digitalcredentials/sha256-universal

Version:

A minimal Typescript SHA-256 digest library for Node.js, browsers, and React Native.

9 lines (8 loc) 234 B
/** * Hashes a string of data using SHA-256. * * @param {string|Uint8Array} data - Data to hash. * * @return {Uint8Array} the hash digest. */ export declare function sha256digest(data: string | Uint8Array): Promise<Uint8Array>;