digestif
Cross-platform SHA2 hash digests.
This library produces digest hashes for any binary type or string with a very low footprint and impact on bundle size in browsers.
It also works in Node.js but still restricts itself to the hash types supported in the browser without external dependencies.
const digest = let hash = // defaults to sha256 // Accepts any binary typehash = // Supports SHA2 256, 384 and 512hash =