browser.js 327 B

1234567891011
  1. exports.publicEncrypt = require('./publicEncrypt')
  2. exports.privateDecrypt = require('./privateDecrypt')
  3. exports.privateEncrypt = function privateEncrypt (key, buf) {
  4. return exports.publicEncrypt(key, buf, true)
  5. }
  6. exports.publicDecrypt = function publicDecrypt (key, buf) {
  7. return exports.privateDecrypt(key, buf, true)
  8. }