@1auth/crypto
Advanced tools
Comparing version 0.0.0-alpha.30 to 0.0.0-alpha.31
@@ -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" | ||
} | ||
} |
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
+ Added@napi-rs/wasm-runtime@0.2.4(transitive)
+ Added@node-rs/argon2@1.8.3(transitive)
+ Added@node-rs/argon2-android-arm-eabi@1.8.3(transitive)
+ Added@node-rs/argon2-android-arm64@1.8.3(transitive)
+ Added@node-rs/argon2-darwin-arm64@1.8.3(transitive)
+ Added@node-rs/argon2-darwin-x64@1.8.3(transitive)
+ Added@node-rs/argon2-freebsd-x64@1.8.3(transitive)
+ Added@node-rs/argon2-linux-arm-gnueabihf@1.8.3(transitive)
+ Added@node-rs/argon2-linux-arm64-gnu@1.8.3(transitive)
+ Added@node-rs/argon2-linux-arm64-musl@1.8.3(transitive)
+ Added@node-rs/argon2-linux-x64-gnu@1.8.3(transitive)
+ Added@node-rs/argon2-linux-x64-musl@1.8.3(transitive)
+ Added@node-rs/argon2-wasm32-wasi@1.8.3(transitive)
+ Added@node-rs/argon2-win32-arm64-msvc@1.8.3(transitive)
+ Added@node-rs/argon2-win32-ia32-msvc@1.8.3(transitive)
+ Added@node-rs/argon2-win32-x64-msvc@1.8.3(transitive)
+ Added@tybys/wasm-util@0.9.0(transitive)
- Removed@napi-rs/wasm-runtime@0.1.2(transitive)
- Removed@node-rs/argon2@1.8.0(transitive)
- Removed@node-rs/argon2-android-arm-eabi@1.8.0(transitive)
- Removed@node-rs/argon2-android-arm64@1.8.0(transitive)
- Removed@node-rs/argon2-darwin-arm64@1.8.0(transitive)
- Removed@node-rs/argon2-darwin-x64@1.8.0(transitive)
- Removed@node-rs/argon2-freebsd-x64@1.8.0(transitive)
- Removed@node-rs/argon2-linux-arm-gnueabihf@1.8.0(transitive)
- Removed@node-rs/argon2-linux-arm64-gnu@1.8.0(transitive)
- Removed@node-rs/argon2-linux-arm64-musl@1.8.0(transitive)
- Removed@node-rs/argon2-linux-x64-gnu@1.8.0(transitive)
- Removed@node-rs/argon2-linux-x64-musl@1.8.0(transitive)
- Removed@node-rs/argon2-wasm32-wasi@1.8.0(transitive)
- Removed@node-rs/argon2-win32-arm64-msvc@1.8.0(transitive)
- Removed@node-rs/argon2-win32-ia32-msvc@1.8.0(transitive)
- Removed@node-rs/argon2-win32-x64-msvc@1.8.0(transitive)
- Removed@tybys/wasm-util@0.8.3(transitive)
Updated@node-rs/argon2@1.8.3