Socket
Socket
Sign inDemoInstall

@noble/hashes

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@noble/hashes - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

7

lib/esm/package.json
{
"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');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc