1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/public-encrypt/browser.js

11 lines
327 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
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)
}