Skip to content

Commit dc26d5f

Browse files
committed
Merge branch 'public-encrypt' of https://github.com/calvinmetcalf/crypto-browserify
Conflicts: package.json
2 parents a8df5a8 + 845cbaa commit dc26d5f

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
"create-ecdh": "1.0.0",
2121
"diffie-hellman": "2.2.0",
2222
"browserify-sign": "2.6.0",
23+
"create-ecdh": "1.0.0",
24+
"diffie-hellman": "2.2.0",
2325
"pbkdf2-compat": "2.0.1",
26+
"public-encrypt": "1.0.1",
2427
"ripemd160": "0.2.0",
2528
"sha.js": "2.3.0"
2629
},

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)