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
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ 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
-
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.
66
+
> *Notice:*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.
*`'pem'` — Base64 encoded string with header and footer. Used by default.
124
124
*`'der'` — Binary encoded key data.
125
125
126
-
**Notice:** For import, if *keyData* is PEM string or buffer containing string, you can do not specify format, but if you provide *keyData* as DER you must specify it in format string.
126
+
> *Notice:* For import, if *keyData* is PEM string or buffer containing string, you can do not specify format, but if you provide *keyData* as DER you must specify it in format string.
127
127
128
128
**Shortcuts and examples**
129
129
*`'private'` or `'pkcs1'` or `'pkcs1-private'` == `'pkcs1-private-pem'` — private key encoded in pcks1 scheme as pem string.
@@ -211,9 +211,10 @@ Questions, comments, bug reports, and pull requests are all welcome.
211
211
212
212
### 0.2.20
213
213
* Added `.encryptPrivate()` and `.decryptPublic()` methods
214
-
* Encrypt/decrypt methods in nodejs 0.12.x and io.js using native implementation (40x speed boost)
215
-
***KNOWN ISSUES**:
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
214
+
* Encrypt/decrypt methods in nodejs 0.12.x and io.js using native implementation (> 40x speed boost)
215
+
216
+
**KNOWN ISSUES**:
217
+
*`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
217
218
218
219
### 0.2.10
219
220
***Methods `.exportPrivate()` and `.exportPublic()` was replaced by `.exportKey([format])`.**
0 commit comments