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.2.0 to 0.2.1

4

design.md

@@ -138,3 +138,7 @@ # private-box

### time complexity
failed decrypt: recipients.length
successful decrypt: recipients.length/2
## a more private multibox

@@ -141,0 +145,0 @@

6

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

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

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

@@ -76,1 +77,2 @@

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

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

"dependencies": {
"chloride": "^2.0.1"
"chloride": "^2.2.1"
},

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

@@ -89,1 +89,2 @@

})
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