summaryrefslogtreecommitdiffstats
path: root/node_modules/public-encrypt/browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/public-encrypt/browser.js')
-rw-r--r--node_modules/public-encrypt/browser.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/public-encrypt/browser.js b/node_modules/public-encrypt/browser.js
new file mode 100644
index 0000000..4032f68
--- /dev/null
+++ b/node_modules/public-encrypt/browser.js
@@ -0,0 +1,10 @@
+exports.publicEncrypt = require('./publicEncrypt')
+exports.privateDecrypt = require('./privateDecrypt')
+
+exports.privateEncrypt = function privateEncrypt (key, buf) {
+ return exports.publicEncrypt(key, buf, true)
+}
+
+exports.publicDecrypt = function publicDecrypt (key, buf) {
+ return exports.privateDecrypt(key, buf, true)
+}