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

convert-der-to-concatenated

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-der-to-concatenated

Converts ECDSA ANS1 DER to concatenated R|S representation

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

ConvertDERToConcatenated

Little NodeJS helper to transform ECDSA ASN1 DER (as base64 string or Buffer) to concatenated R|S representation.

Install

npm install convert-der-to-concatenated

yarn add convert-der-to-concatenated

Usage

TS

import { convertDerToConcatenated } from 'convert-der-to-concatenated'

const asn1 = 'some base64 asn1 der'

// null = nothing found, base64 string of r and s
const rsConcatenated = convertDerToConcatenated(ans1)

JS

const  convertDerToConcatenated = require('convert-der-to-concatenated').convertDerToConcatenated

const asn1 = 'some base64 asn1 der'

// null = nothing found, base64 string of r and s
const rsConcatenated = convertDerToConcatenated(ans1)

FAQs

Package last updated on 30 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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