Skip to content

Commit 845cbaa

Browse files
committed
publicEncrypt and privateDecrypt
1 parent 5142c60 commit 845cbaa

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ require('browserify-aes/inject')(exports, module.exports);
4040
require('browserify-sign/inject')(module.exports, exports);
4141
require('diffie-hellman/inject')(exports, module.exports);
4242
require('create-ecdh/inject')(module.exports, exports);
43+
require('public-encrypt/inject')(module.exports, exports);
4344

4445
// the least I can do is make error messages for the rest of the node.js/crypto api.
4546
each([
46-
'createCredentials', 'publicEncrypt', 'privateDecrypt'
47+
'createCredentials'
4748
], function (name) {
4849
exports[name] = function () {
4950
error('sorry,', name, 'is not implemented yet')

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
},
1818
"dependencies": {
1919
"browserify-aes": "0.6.0",
20+
"browserify-sign": "2.5.1",
2021
"create-ecdh": "1.0.0",
2122
"diffie-hellman": "2.2.0",
22-
"browserify-sign": "2.5.1",
2323
"pbkdf2-compat": "2.0.1",
24+
"public-encrypt": "1.0.1",
2425
"ripemd160": "0.2.0",
2526
"sha.js": "2.3.0"
2627
},

readme.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Here is the subset that is currently implemented:
2222
* createSign (rsa, ecdsa)
2323
* createVerify (rsa, ecdsa)
2424
* createECDH (secp256k1)
25+
* publicEncrypt/privateDecrypt (rsa)
2526

2627
## todo
2728

2829
these features from node's `crypto` are still unimplemented.
2930

3031
* createCredentials
31-
* publicEncrypt/privateDecrypt
3232

3333
## contributions
3434

test/public-encrypt.js

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)