Package Exports
- @aws-crypto/sha1-browser
- @aws-crypto/sha1-browser/build/main/index.js
- @aws-crypto/sha1-browser/build/module/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-crypto/sha1-browser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@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