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

@types/jsrsasign

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/jsrsasign

TypeScript definitions for jsrsasign

  • 9.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
152K
decreased by-5.69%
Maintainers
1
Weekly downloads
 
Created

What is @types/jsrsasign?

The @types/jsrsasign package provides TypeScript type definitions for the jsrsasign library, which is a comprehensive library for cryptographic operations, including RSA, ECDSA, and DSA key generation, digital signatures, and X.509 certificate handling.

What are @types/jsrsasign's main functionalities?

RSA Key Generation

Generates an RSA key pair with a key size of 2048 bits.

const rsaKeypair = KEYUTIL.generateKeypair('RSA', 2048);

Digital Signature Creation

Creates a digital signature for a given message using SHA256 with RSA.

const sig = new KJUR.crypto.Signature({alg: 'SHA256withRSA'});
sig.init(rsaKeypair.prvKeyObj);
sig.updateString('message');
const signature = sig.sign();

X.509 Certificate Handling

Reads an X.509 certificate in PEM format and extracts the subject string.

const certPEM = '-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----';
const x509 = new X509();
x509.readCertPEM(certPEM);
const subject = x509.getSubjectString();

Other packages similar to @types/jsrsasign

FAQs

Package last updated on 29 Dec 2021

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