1024 deprecated, use 2048
This commit is contained in:
parent
7776aaa785
commit
f0adccbc31
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue