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

browserify-rsa

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-rsa

RSA for browserify

  • 4.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.4M
decreased by-4.3%
Maintainers
5
Weekly downloads
 
Created

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

FAQs

Package last updated on 26 Sep 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