1024 deprecated, use 2048

This commit is contained in:
AJ ONeal 2018-05-10 21:01:54 +00:00
parent 7776aaa785
commit f0adccbc31
1 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,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 };
@ -111,10 +111,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)