Comparing version 0.0.1 to 0.0.2
@@ -71,7 +71,9 @@ var fernet = require('../fernet'); | ||
var matches = true; | ||
for(var i=0;i<64;i++){ | ||
if(decodedHmacHex[i] !== this.hmacHex[i]){ | ||
throw new Error("Invalid Token: HMAC"); | ||
matches = false; | ||
} | ||
} | ||
if(!matches) throw new Error("Invalid Token: HMAC"); | ||
@@ -78,0 +80,0 @@ this.message = fernet.decryptMessage(this.cipherText, this.secret.encryptionKey, this.iv) |
{ | ||
"name": "fernet", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Javascript implementation of Fernet symmetric encryption https://github.com/kr/fernet-spec", | ||
@@ -5,0 +5,0 @@ "main": "fernet.js", |
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
4365995
20226