Skip to content

aaln/node-generate-rsa-keypair

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate an RSA keypair

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 77.0%
  • JavaScript 17.8%
  • Python 5.2%