Socket
Socket
Sign inDemoInstall

ecdsa-sig-formatter

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.9 to 1.0.10

CODEOWNERS

7

package.json
{
"name": "ecdsa-sig-formatter",
"version": "1.0.9",
"version": "1.0.10",
"description": "Translate ECDSA signatures between ASN.1/DER and JOSE-style concatenation",

@@ -32,3 +32,2 @@ "main": "src/ecdsa-sig-formatter.js",

"dependencies": {
"base64url": "^2.0.0",
"safe-buffer": "^5.0.1"

@@ -40,3 +39,2 @@ },

"coveralls": "^2.11.9",
"elliptic": "^6.3.1",
"eslint": "^2.12.0",

@@ -46,4 +44,5 @@ "eslint-config-brightspace": "^0.2.1",

"jwk-to-pem": "^1.2.5",
"mocha": "^2.5.3"
"mocha": "^2.5.3",
"native-crypto": "^1.7.0"
}
}
'use strict';
var base64Url = require('base64url').fromBase64;
var Buffer = require('safe-buffer').Buffer;

@@ -16,2 +15,9 @@

function base64Url(base64) {
return base64
.replace(/=/g, '')
.replace(/\+/g, '-')
.replace(/\//g, '_');
}
function signatureAsBuffer(signature) {

@@ -18,0 +24,0 @@ if (Buffer.isBuffer(signature)) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc