# generate-rsa-keypair

> Generate an RSA keypair.

Latest version **0.2.1** (published 2019-05-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install generate-rsa-keypair
pnpm add generate-rsa-keypair
yarn add generate-rsa-keypair
bun add generate-rsa-keypair
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2019-05-09 |
| First published | 2015-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.6.0 |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 9 |
| Maintainers | linusu |

## Links

- npm: https://www.npmjs.com/package/generate-rsa-keypair
- Repository: https://github.com/LinusU/node-generate-rsa-keypair
- Homepage: https://github.com/LinusU/node-generate-rsa-keypair#readme
- Issues: https://github.com/LinusU/node-generate-rsa-keypair/issues
- npm.io page: https://npm.io/package/generate-rsa-keypair

## Recent versions

- 0.2.1 (latest) — 2019-05-09
- 0.2.0 — 2019-05-09
- 0.1.2 — 2018-05-08
- 0.1.1 — 2015-12-11
- 0.1.0 — 2015-07-17

## README

# generate-rsa-keypair

Generate an RSA keypair.

## Installation

```bash
npm install --save generate-rsa-keypair
```

## Usage

```javascript
var generateRSAKeypair = require('generate-rsa-keypair')

var pair = generateRSAKeypair()

console.log(pair.private) // String with the private key in PEM format
console.log(pair.public)  // String with the public key in PEM format
```

## API

### `generateRSAKeypair()`

Return a keypair, an object with two strings: `private` and `public`.

## License

MIT

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