Socket
Book a DemoInstallSign in
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

latest
npmnpm
Version
0.1.0
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