Skip to content

Commit 8290c2a

Browse files
committed
Updated readme
1 parent 1cd695b commit 8290c2a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ var key = new NodeRSA('-----BEGIN RSA PRIVATE KEY-----\n'+
5050
Also you can use next methods:
5151

5252
```js
53-
key.generateKeyPair([bits], [exp]); // exp = 65537 by default
53+
key.generateKeyPair([bits], [exp]);
5454
key.loadFromPEM(pem_string);
5555
```
56+
**bits** - key size in bits. 2048 by default.
57+
**exp** - public exponent. 65537 by default.
5658

5759
### Export keys
5860
```js
@@ -79,8 +81,8 @@ key.encrypt(buffer, [source_encoding], [output_encoding]);
7981
key.decrypt(buffer, [encoding]);
8082
```
8183

82-
* **buffer** - data for decrypting. Takes Buffer object.
83-
* **encoding** - encoding for result string. Can also take 'buffer' for raw Buffer object, or 'json' for automatic JSON.parse result.
84+
**buffer** - data for decrypting. Takes Buffer object.
85+
**encoding** - encoding for result string. Can also take 'buffer' for raw Buffer object, or 'json' for automatic JSON.parse result.
8486

8587

8688
## Contributing

0 commit comments

Comments
 (0)