simple-encryptor
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12251
+ Addedscmp@2.0.0(transitive)
- Removedscmp@0.0.3(transitive)
Updatedscmp@2.0.0