aswi2020vldc-gitlab/templetes/node_modules/public-encrypt/browser.js @ 143404cb
1 |
exports.publicEncrypt = require('./publicEncrypt') |
---|---|
2 |
exports.privateDecrypt = require('./privateDecrypt') |
3 |
|
4 |
exports.privateEncrypt = function privateEncrypt (key, buf) { |
5 |
return exports.publicEncrypt(key, buf, true) |
6 |
}
|
7 |
|
8 |
exports.publicDecrypt = function publicDecrypt (key, buf) { |
9 |
return exports.privateDecrypt(key, buf, true) |
10 |
}
|