@noble/hashes
Advanced tools
Comparing version 0.4.4 to 0.4.5
{ | ||
"type": "module" | ||
} | ||
"type": "module", | ||
"browser": { | ||
"crypto": false | ||
} | ||
} |
{ | ||
"name": "@noble/hashes", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "Fast 0-dependency JS implementation of SHA2, SHA3, RIPEMD, BLAKE2/3, HMAC, HKDF, PBKDF2, Scrypt", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -38,6 +38,7 @@ # noble-hashes ![Node CI](https://github.com/paulmillr/noble-hashes/workflows/Node%20CI/badge.svg) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) | ||
The library does not have an entry point. It allows you to select specific primitives and drop everything else. If you only want to use sha256, just use the library with rollup or other bundlers. This is done to make your bundles tiny. We support ECMAScript modules (ESM). | ||
The library does not have an entry point. It allows you to select specific primitives and drop everything else. If you only want to use sha256, just use the library with rollup or other bundlers. This is done to make your bundles tiny. | ||
```js | ||
const { sha256 } = require('@noble/hashes/lib/sha256'); | ||
// Common.js and ECMAScript Modules (ESM) | ||
import { sha256 } from '@noble/hashes/lib/sha256'; | ||
console.log(sha256(new Uint8Array([1, 2, 3]))); | ||
@@ -49,5 +50,2 @@ // Uint8Array(32) [3, 144, 88, 198, 242, 192, 203, 73, ...] | ||
// ESM version inside `esm` directory | ||
import { sha256 } from '@noble/hashes/lib/esm/sha256'; | ||
// sha384 is here, because it uses same internals as sha512 | ||
@@ -54,0 +52,0 @@ const { sha512, sha512_256, sha384 } = require('@noble/hashes/lib/sha512'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
246701
440