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

@emartech/easy-crypto

Package Overview
Dependencies
Maintainers
153
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emartech/easy-crypto - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

repo-info.json

3

lib/cachedkeyring.js
'use strict';
const NodeCache = require('node-cache');
const config = require('./config');

@@ -43,3 +44,3 @@ class CachedKeyring {

const cacheKey = salt + this._keyring.password;
const cacheKey = salt.toString(config.CIPHERTEXT_ENCODING) + this._keyring.password;
const keyData = this._cache.get(cacheKey);

@@ -46,0 +47,0 @@

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

expect(setSpy.calledWith(salt + 'password', {value: key, lastAccessed: 12345678})).to.be.ok;
expect(setSpy.calledWith(salt.toString('base64') + 'password', {value: key, lastAccessed: 12345678})).to.be.ok;
});

@@ -155,4 +155,4 @@

expect(setSpy.firstCall.calledWith(salt + 'password', {value: key, lastAccessed: 1})).to.be.ok;
expect(setSpy.secondCall.calledWith(salt + 'password', {value: key, lastAccessed: 3})).to.be.ok;
expect(setSpy.firstCall.calledWith(salt.toString('base64') + 'password', {value: key, lastAccessed: 1})).to.be.ok;
expect(setSpy.secondCall.calledWith(salt.toString('base64') + 'password', {value: key, lastAccessed: 3})).to.be.ok;
});

@@ -173,3 +173,3 @@

expect(delSpy.calledWith(salt + 'password')).to.be.ok;
expect(delSpy.calledWith(salt.toString('base64') + 'password')).to.be.ok;
});

@@ -176,0 +176,0 @@

@@ -7,2 +7,3 @@ {

"test": "mocha --require co-mocha *.spec.js **/*.spec.js",
"test:watch": "npm run test -- --watch --reporter dot",
"validate-commit-msg": "validate-commit-msg",

@@ -39,3 +40,3 @@ "semantic-release": "semantic-release"

},
"version": "4.0.0"
"version": "4.0.1"
}
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