Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ssb-keys

Package Overview
Dependencies
Maintainers
5
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssb-keys - npm Package Compare versions

Comparing version 8.0.0 to 8.0.1

6

package.json
{
"name": "ssb-keys",
"description": "keyfile operations for ssb",
"version": "8.0.0",
"version": "8.0.1",
"homepage": "https://github.com/ssbc/ssb-keys",

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

"dependencies": {
"chloride": "~2.2.8",
"chloride": "~2.4.0",
"mkdirp": "~0.5.0",

@@ -22,3 +22,3 @@ "private-box": "~0.3.0"

"pretty-quick": "^3.0.2",
"tape": "^3.0.3"
"tape": "^5.1.1"
},

@@ -25,0 +25,0 @@ "engines": {

@@ -69,3 +69,3 @@ "use strict";

exports.load = function (filename, cb) {
filename = toFile(filename, "secret");
filename = toFile(filename);
fs.readFile(filename, "ascii", function (err, privateKeyStr) {

@@ -72,0 +72,0 @@ if (err) return cb(err);

@@ -91,1 +91,17 @@ var tape = require("tape");

});
tape("don't create dir for fully-specified path", function (t) {
const keyPath = path.join(os.tmpdir(), `ssb-keys-5-${Date.now()}`);
t.equal(fs.existsSync(keyPath), false);
ssbkeys.loadOrCreate(keyPath, (err) => {
t.error(err);
t.true(fs.lstatSync(keyPath).isFile());
ssbkeys.loadOrCreate(keyPath, (err, keys) => {
t.error(err);
t.equal(keys.public.length, 52);
fs.unlinkSync(keyPath);
t.end();
});
});
});

@@ -5,3 +5,5 @@ var tape = require("tape");

tape("secretBox, secretUnbox", function (t) {
var key = Buffer.from("somewhere-over-the-rainbow-way-up-high");
var key = Buffer.from(
"somewhere-over-the-rainbow-way-up-high".substring(0, 32)
);

@@ -8,0 +10,0 @@ var boxed = ssbkeys.secretBox({ okay: true }, key);

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