Socket
Socket
Sign inDemoInstall

@1auth/crypto

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@1auth/crypto - npm Package Compare versions

Comparing version 0.0.0-alpha.30 to 0.0.0-alpha.31

6

./index.js

@@ -19,3 +19,3 @@ import { promisify } from 'node:util'

digestAlgorithm: 'sha3-256',
digestAlgorithm: 'sha3-384',
digestSalt: ''

@@ -388,3 +388,3 @@ }

export const makeSignature = (data, privateKey, algorithm = 'SHA3-256') => {
export const makeSignature = (data, privateKey, algorithm = 'SHA3-384') => {
return sign(algorithm, Buffer.from(data), privateKey).toString('base64')

@@ -396,3 +396,3 @@ }

signature,
algorithm = 'SHA3-256'
algorithm = 'SHA3-384'
) => {

@@ -399,0 +399,0 @@ return verify(

@@ -19,3 +19,3 @@ import { promisify } from 'node:util'

digestAlgorithm: 'sha3-256',
digestAlgorithm: 'sha3-384',
digestSalt: ''

@@ -388,3 +388,3 @@ }

export const makeSignature = (data, privateKey, algorithm = 'SHA3-256') => {
export const makeSignature = (data, privateKey, algorithm = 'SHA3-384') => {
return sign(algorithm, Buffer.from(data), privateKey).toString('base64')

@@ -396,3 +396,3 @@ }

signature,
algorithm = 'SHA3-256'
algorithm = 'SHA3-384'
) => {

@@ -399,0 +399,0 @@ return verify(

{
"name": "@1auth/crypto",
"version": "0.0.0-alpha.30",
"version": "0.0.0-alpha.31",
"description": "",

@@ -47,6 +47,6 @@ "type": "module",

"homepage": "https://github.com/willfarrell/1auth",
"gitHead": "bba2971096bfd6bcc30e7613fae272896456ecfa",
"gitHead": "246b0b521e6d136d8f37ee7d9781ffc8ccc987bd",
"dependencies": {
"@node-rs/argon2": "1.8.0"
"@node-rs/argon2": "1.8.3"
}
}
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