@aws-crypto/sha1-browser
TypeScript icon, indicating that this package has built-in type declarations

5.2.0 • Public • Published

@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 5.2.0
    78
    • latest

Version History

Package Sidebar

Install

npm i @aws-crypto/sha1-browser

Weekly Downloads

4,582,076

Version

5.2.0

License

Apache-2.0

Unpacked Size

38.3 kB

Total Files

41

Last publish

Collaborators

  • amzn-oss
  • seebees
  • agray256
  • lavaleri
  • salkeldr
  • aws-crypto-tools-ci-bot
  • mattsb42-aws
  • farleyb-aws