UNPKG

@tiny-utils/crypto

Version:

Tiny utils for crypto: asymmetric/symmetric encryption, ed25519, sha256, etc.

8 lines (7 loc) 292 B
/** * @category Crypto * @description Method to calculate SHA256 hash of the arbitrary data (bytes array or string) * @param data Data to calculate hash * @returns 32-bytes array with the SHA256 hash of the data */ export declare const sha256: (data: string | Uint8Array) => Uint8Array;