Socket
Socket
Sign inDemoInstall

gpg

Package Overview
Dependencies
0
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.6.0

2

lib/spawnGPG.js

@@ -47,3 +47,3 @@ 'use strict';

cb(null, msg);
cb(null, msg, error);
});

@@ -50,0 +50,0 @@

@@ -5,3 +5,3 @@ {

"description": "GPG encryption and decryption in node.js by way of the gpg command-line tool",
"version": "0.5.0",
"version": "0.6.0",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -128,2 +128,11 @@ var assert = require('assert');

it('should provide stderr output for successful calls', function(done) {
gpg.decrypt(encryptedString, function(err, decrypted, stderr){
assert.ifError(err);
assert.ok(/ID C343C0BC/.test(stderr)); // key information is sent to stderr by gpg
assert.equal(decrypted.toString('utf8'), 'Hello World');
done();
});
});
it('should decrypt Buffers', function(done){

@@ -130,0 +139,0 @@ var encryptedBuffer = new Buffer(encryptedString);

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc