JSPM

  • Created
  • Published
  • Downloads 1295824
  • Score
    100M100P100Q198074F
  • License MIT

The SHA2 family hash functions and HMAC functions for ethers.

Package Exports

  • @ethersproject/sha2
  • @ethersproject/sha2/lib/browser-sha2.js
  • @ethersproject/sha2/lib/sha2

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 (@ethersproject/sha2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SHA2 Hash Functions

This sub-module is part of the ethers project.

It is responsible for common cryptographic hashes and HMAC.

For more information, see the documentation.

Importing

Most users will prefer to use the umbrella package, but for those with more specific needs, individual components can be imported.

const {

    ripemd160,

    sha256,
    sha512,

    computeHmac,

    // Enums

    SupportedAlgorithm

} = require("@ethersproject/sha2");

License

MIT License