merge
This commit is contained in:
commit
8cee5a1b4e
|
@ -61,7 +61,7 @@ Generate an RSA Keypair:
|
||||||
```javascript
|
```javascript
|
||||||
var RSA = require('rsa-compat').RSA;
|
var RSA = require('rsa-compat').RSA;
|
||||||
|
|
||||||
var bitlen = 1024;
|
var bitlen = 2048;
|
||||||
var exp = 65537;
|
var exp = 65537;
|
||||||
var options = { public: true, pem: true, internal: true };
|
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
|
```javascript
|
||||||
RSA.generateKeypair(null, null, null, function (keypair) { /*...*/ });
|
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)
|
`exp`: *65537* (default)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue