New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mcrypt

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcrypt - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

3

index.js
'use strict';
module.exports = require('./build/Release/mcrypt');
module.exports = require('bindings')('mcrypt');
{
"name": "mcrypt",
"version": "0.1.12",
"version": "0.1.13",
"description": "MCrypt bindings",

@@ -20,4 +20,3 @@ "keywords": [

"scripts": {
"test": "mocha",
"install": "node-gyp rebuild --release"
"test": "mocha"
},

@@ -28,2 +27,3 @@ "engines": {

"dependencies": {
"bindings": "^1.3.0",
"nan": "^2.3.3"

@@ -33,5 +33,6 @@ },

"mocha": "^2.3.3",
"node-gyp": "*"
"node-gyp": "^3.6.2"
},
"main": "./build/Release/mcrypt"
"main": "index.js",
"gypfile": true
}

@@ -23,3 +23,3 @@

});
describe('encrypt', function() {

@@ -34,8 +34,3 @@ it('plaintext and decrypted ciphertext should be same', function(){

it('ciphertext and encrypted plaintext should be same', function(){
var result = mc.decrypt(new Buffer(ciphertext, 'base64')).toString().trim();
console.log(new Buffer(result));
console.log(new Buffer(plaintext));
var result = mc.decrypt(new Buffer(ciphertext, 'base64')).toString();
assert.equal(plaintext, result, 'plaintext are not same');

@@ -42,0 +37,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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