# node-crypto-rsa

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

Latest version **1.2.1** (published 2022-09-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-crypto-rsa
pnpm add node-crypto-rsa
yarn add node-crypto-rsa
bun add node-crypto-rsa
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2022-09-26 |
| First published | 2022-09-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rogerrafael7 |

## Links

- npm: https://www.npmjs.com/package/node-crypto-rsa
- npm.io page: https://npm.io/package/node-crypto-rsa

## Recent versions

- 1.2.1 (latest) — 2022-09-26
- 1.2.0 — 2022-09-26
- 1.1.9 — 2022-09-25
- 1.1.8 — 2022-09-25
- 1.1.7 — 2022-09-25
- 1.1.6 — 2022-09-25
- 1.0.6 — 2022-09-25
- 1.0.5 — 2022-09-23
- 1.0.4 — 2022-09-23
- 1.0.3 — 2022-09-23
- 1.0.2 — 2022-09-23
- 1.0.1 — 2022-09-23
- 1.0.0 — 2022-09-23

## README

# Description

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

### Example

```javascript
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'
```

---
_Source: https://npm.io/package/node-crypto-rsa · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
