UNPKG

@digitalcredentials/sha256-universal

Version:

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

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