You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-20Lines changed: 4 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,31 +63,16 @@ You can specify some options by second/third constructor argument, or over `key.
63
63
* encryptionScheme — padding scheme for encrypt/decrypt. Can be `'pkcs1_oaep'` or `'pkcs1'`. Default `'pkcs1_oaep'`.
64
64
* signingScheme — scheme used for signing and verifying. Can be `'pkcs1'` or `'pss'` or 'scheme-hash' format string (eg `'pss-sha1'`). Default `'pkcs1-sha256'`, or, if chosen pss: `'pss-sha1'`.
65
65
66
-
**Advanced options:**<br/>
67
-
You also can specify advanced options for some schemes like this:
68
-
```javascript
69
-
options = {
70
-
encryptionScheme: {
71
-
scheme:'pkcs1_oaep', //scheme
72
-
hash:'md5', //hash using for scheme
73
-
mgf:function(...) {...} //mask generation function
74
-
},
75
-
signingScheme: {
76
-
scheme:'pss', //scheme
77
-
hash:'sha1', //hash using for scheme
78
-
saltLength:20//salt length for pss sign
79
-
}
80
-
}
81
-
```
82
-
83
66
This lib supporting next hash algorithms: `'md5'`, `'ripemd160'`, `'sha1'`, `'sha256'`, `'sha512'` in browser and node environment and additional `'md4'`, `'sha'`, `'sha224'`, `'sha384'` in node only.
#### Generate new key 512bit-length and with public exponent 65537
75
+
#### Generate new 512bit-length key
91
76
```javascript
92
77
var key =newNodeRSA({b:512});
93
78
```
@@ -228,8 +213,7 @@ Questions, comments, bug reports, and pull requests are all welcome.
228
213
* Added `.encryptPrivate()` and `.decryptPublic()` methods
229
214
* Encrypt/decrypt methods in nodejs 0.12.x and io.js using native implementation (40x speed boost)
230
215
***KNOWN ISSUES**:
231
-
*`encryptPrivate` and `decryptPublic` don't have native implementation in nodejs
232
-
*`encryptPrivate` and `decryptPublic` with pkcs1_oaep padding scheme don't work in io.js and using js implementation
216
+
*`encryptPrivate` and `decryptPublic` don't have native implementation in nodejs and can't be use in native implementation with pkcs1_oaep padding in io.js
233
217
234
218
### 0.2.10
235
219
***Methods `.exportPrivate()` and `.exportPublic()` was replaced by `.exportKey([format])`.**
0 commit comments