Socket
Socket
Sign inDemoInstall

browserify-rsa

Package Overview
Dependencies
3
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-rsa

RSA for browserify


Version published
Maintainers
3
Weekly downloads
8,628,141
increased by2.04%
Install size
142 kB

Weekly downloads

Package description

What is browserify-rsa?

The browserify-rsa package is a Node.js module that provides functionality for RSA encryption and decryption, specifically tailored for use with Browserify. It allows users to perform RSA public and private key operations in a way that is compatible with web browsers.

What are browserify-rsa's main functionalities?

RSA padding

This feature allows for RSA padding when encrypting data. The code sample demonstrates how to use the browserify-rsa package to pad a message using a private key before encryption.

const parseKeys = require('parse-asn1');
const browserifyRsa = require('browserify-rsa');

const privateKey = parseKeys(privateKeyAsn1);
const paddedMessage = browserifyRsa(privateKey, bufferToEncrypt);

RSA decryption

This feature is used for RSA decryption. The code sample shows how to use the browserify-rsa package to decrypt a message using a private key.

const parseKeys = require('parse-asn1');
const browserifyRsa = require('browserify-rsa');

const privateKey = parseKeys(privateKeyAsn1);
const decryptedMessage = browserifyRsa(privateKey, bufferToDecrypt);

Other packages similar to browserify-rsa

Readme

Source

browserify-rsa

NPM Package Build Status Dependency status

js-standard-style

RSA private decryption/signing using chinese remainder and blinding.

API

Give it a message as a Buffer and a private key (as decoded by ASN.1) and it returns encrypted data as a Buffer.

LICENSE

MIT

FAQs

Last updated on 12 Nov 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc