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

@depay/js-verify-signature-web

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

@depay/js-verify-signature-web - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

3

dist/esm/index.d.ts
declare function verify({
signature: string,
publicKey: string,
data: string,
saltLength?: number
data: string | object,
}): Promise<boolean>;

@@ -7,0 +6,0 @@

@@ -26,2 +26,14 @@ const string2ArrayBuffer = (str)=> {

if(typeof signature !== 'string' || signature === undefined) {
throw('signature missing!')
}
if(data === undefined || data.length === 0) {
throw('data missing!')
}
if(publicKey === undefined || typeof publicKey !== 'string' || publicKey.length === 0) {
throw('publicKey missing!')
}
let innerPublicKey = publicKey.replace(/^.*?-----BEGIN PUBLIC KEY-----\n/, '').replace(/-----END PUBLIC KEY-----(\n)*$/, '').replace(/(\n)*/g, '');

@@ -28,0 +40,0 @@ while (innerPublicKey.length % 4) { // add proper padding

declare function verify({
signature: string,
publicKey: string,
data: string,
saltLength?: number
data: string | object,
}): Promise<boolean>;

@@ -7,0 +6,0 @@

@@ -26,2 +26,14 @@ const string2ArrayBuffer = (str)=> {

if(typeof signature !== 'string' || signature === undefined) {
throw('signature missing!')
}
if(data === undefined || data.length === 0) {
throw('data missing!')
}
if(publicKey === undefined || typeof publicKey !== 'string' || publicKey.length === 0) {
throw('publicKey missing!')
}
let innerPublicKey = publicKey.replace(/^.*?-----BEGIN PUBLIC KEY-----\n/, '').replace(/-----END PUBLIC KEY-----(\n)*$/, '').replace(/(\n)*/g, '');

@@ -28,0 +40,0 @@ while (innerPublicKey.length % 4) { // add proper padding

declare function verify({
signature: string,
publicKey: string,
data: string,
saltLength?: number
data: string | object,
}): Promise<boolean>;

@@ -7,0 +6,0 @@

@@ -32,2 +32,14 @@ (function (global, factory) {

if(typeof signature !== 'string' || signature === undefined) {
throw('signature missing!')
}
if(data === undefined || data.length === 0) {
throw('data missing!')
}
if(publicKey === undefined || typeof publicKey !== 'string' || publicKey.length === 0) {
throw('publicKey missing!')
}
let innerPublicKey = publicKey.replace(/^.*?-----BEGIN PUBLIC KEY-----\n/, '').replace(/-----END PUBLIC KEY-----(\n)*$/, '').replace(/(\n)*/g, '');

@@ -34,0 +46,0 @@ while (innerPublicKey.length % 4) { // add proper padding

declare function verify({
signature: string,
publicKey: string,
data: string,
saltLength?: number
data: string | object,
}): Promise<boolean>;

@@ -7,0 +6,0 @@

@@ -32,2 +32,14 @@ (function (global, factory) {

if(typeof signature !== 'string' || signature === undefined) {
throw('signature missing!')
}
if(data === undefined || data.length === 0) {
throw('data missing!')
}
if(publicKey === undefined || typeof publicKey !== 'string' || publicKey.length === 0) {
throw('publicKey missing!')
}
let innerPublicKey = publicKey.replace(/^.*?-----BEGIN PUBLIC KEY-----\n/, '').replace(/-----END PUBLIC KEY-----(\n)*$/, '').replace(/(\n)*/g, '');

@@ -34,0 +46,0 @@ while (innerPublicKey.length % 4) { // add proper padding

{
"name": "@depay/js-verify-signature-web",
"moduleName": "DePayVerifySignature",
"version": "3.1.2",
"version": "3.1.3",
"description": "JavaScript library to verify RSA PSS SHA256 signatures with a given public key.",

@@ -6,0 +6,0 @@ "main": "dist/umd/index.web.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