You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
327 B

4 years ago
  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. }