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

fernet

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fernet - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

lib/token.js

@@ -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",

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