Miss any of our Open RFC calls?Watch the recordings here! »

generate-rsa-keypair

0.2.1 • Public • Published

generate-rsa-keypair

Generate an RSA keypair.

Installation

npm install --save generate-rsa-keypair

Usage

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

Keywords

none

Install

npm i generate-rsa-keypair

DownloadsWeekly Downloads

316

Version

0.2.1

License

MIT

Unpacked Size

3.68 kB

Total Files

5

Last publish

Collaborators

  • avatar