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

simple-encryptor

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-encryptor - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

index.js

@@ -94,3 +94,3 @@ var crypto = require('crypto');

var actualHmac = hmac(cipherText);
if( !scmp(actualHmac, expectedHmac) ) {
if( !scmp(Buffer.from(actualHmac, 'hex'), Buffer.from(expectedHmac, 'hex')) ) {
throw new Error('HMAC does not match');

@@ -97,0 +97,0 @@ }

{
"name": "simple-encryptor",
"version": "1.2.0",
"version": "1.3.0",
"description": "Simplified encryption/decryption for node.js",

@@ -32,4 +32,4 @@ "main": "index.js",

"dependencies": {
"scmp": "0.0.3"
"scmp": "2.0.0"
}
}
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