UNPKG

@push.rocks/smarthash

Version:

Cross-environment hash functions (SHA256 and MD5) for Node.js and browsers, with support for strings, streams, and files.

9 lines (8 loc) 237 B
/** * Pure JavaScript SHA256 implementation * Used as fallback when crypto.subtle is not available (non-HTTPS contexts) */ /** * Calculate SHA256 hash from bytes */ export declare function sha256Fallback(bytes: Uint8Array): string;