Socket
Socket
Sign inDemoInstall

hypercore-crypto

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypercore-crypto - npm Package Compare versions

Comparing version 3.3.1 to 3.4.0

9

index.js

@@ -90,2 +90,11 @@ const sodium = require('sodium-universal')

exports.hash = function (data, out) {
if (!out) out = b4a.allocUnsafe(32)
if (!Array.isArray(data)) data = [data]
sodium.crypto_generichash_batch(out, data)
return out
}
exports.randomBytes = function (n) {

@@ -92,0 +101,0 @@ const buf = b4a.allocUnsafe(n)

5

package.json
{
"name": "hypercore-crypto",
"version": "3.3.1",
"version": "3.4.0",
"description": "The crypto primitives used in hypercore, extracted into a separate module",
"main": "index.js",
"files": [
"index.js"
],
"dependencies": {

@@ -7,0 +10,0 @@ "b4a": "^1.1.0",

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