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

paseto

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paseto - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

6

lib/help/crypto_worker.js

@@ -124,8 +124,6 @@ const { parentPort, Worker, isMainThread } = require('worker_threads')

const t2 = methods.hmac('sha384', preAuth, ak)
if (!timingSafeEqual(t, t2)) return false
const payload = methods.decrypt('aes-256-ctr', c, ek, n.slice(16))
if (!payload) return false
if (!timingSafeEqual(t, t2) || !payload) {
return false
}
return payload

@@ -132,0 +130,0 @@ },

@@ -33,3 +33,3 @@ const {

if (complete) {
return { payload: m, footer, version: 'v2', purpose: 'public' }
return { payload: m, footer, version: 'v1', purpose: 'public' }
}

@@ -36,0 +36,0 @@

{
"name": "paseto",
"version": "2.1.1",
"version": "2.1.2",
"description": "PASETO for Node.js with no dependencies",

@@ -5,0 +5,0 @@ "keywords": [

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