New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-crypto-rsa

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-crypto-rsa

This library provides a simple interface to use RSA encryption and decryption.

latest
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

Description

This library provides a simple interface to use RSA encryption and decryption.

Example

const rsaUtil = new RSAUtil()
rsaUtil.createPairKeys()

const valueToEncrypt = 'Hello World'
const encryptedData = rsaUtil.encrypt(valueToEncrypt)
console.log(encryptedData) // show a value like this: 9a8f7f6e5d4c3b2a1918...

const decrypted = rsaUtil.decrypt(encryptedData)
console.log(decrypted) // show 'Hello World'

FAQs

Package last updated on 26 Sep 2022

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