mirror of
https://github.com/619dev/PaperPhone.git
synced 2026-05-07 22:36:26 +08:00
@aws-crypto/sha1-browser
SHA1 wrapper for browsers that prefers window.crypto.subtle.
SHA1 is NOT a cryptographically secure algorithm. It should only be used for non cryptographic functions like checksums.
Usage
import {Sha1} from '@aws-crypto/sha1-browser'
const hash = new Sha1();
hash.update('some data');
const result = await hash.digest();
Test
npm test