This commit is contained in:
AJ ONeal 2018-06-29 02:40:11 -06:00
commit 8cee5a1b4e
1 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ Generate an RSA Keypair:
```javascript
var RSA = require('rsa-compat').RSA;
var bitlen = 1024;
var bitlen = 2048;
var exp = 65537;
var options = { public: true, pem: true, internal: true };
@ -128,10 +128,10 @@ Create a private keypair and export it as PEM, JWK, and/or internal formats
```javascript
RSA.generateKeypair(null, null, null, function (keypair) { /*...*/ });
RSA.generateKeypair(1024, 65537, { pem: false, public: false, internal: false }, function (keypair) { /*...*/ });
RSA.generateKeypair(2048, 65537, { pem: false, public: false, internal: false }, function (keypair) { /*...*/ });
```
`bitlen`: *1024* (default), 2048, or 4096
`bitlen`: 2048 or 4096
`exp`: *65537* (default)