Socket
Socket
Sign inDemoInstall

private-box

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

private-box - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

8

index.js
var sodium = require('chloride/build/Release/sodium')
var sodium = require('chloride')
var crypto = require('crypto')
var scalarmult = sodium.crypto_scalarmult

@@ -12,5 +12,3 @@ var box = sodium.crypto_box_easy

function randombytes(n) {
var b = new Buffer(n)
sodium.randombytes(b)
return b
return crypto.randomBytes(n)
}

@@ -17,0 +15,0 @@

{
"name": "private-box",
"description": "encrypt a message to a secret number of recipients",
"version": "0.0.2",
"version": "0.0.3",
"homepage": "https://github.com/auditdrivencrypto/private-box",

@@ -11,3 +11,3 @@ "repository": {

"dependencies": {
"chloride": "^1.0.20-1"
"chloride": "^2.0.1"
},

@@ -14,0 +14,0 @@ "devDependencies": {

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