Socket
Socket
Sign inDemoInstall

browserify-rsa

Package Overview
Dependencies
3
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

browserify-rsa

RSA for browserify

    4.1.0latest
    GitHub
    npm

Version published
Maintainers
3
Weekly downloads
9,201,072
increased by6.98%

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 installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the 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