draft: refactor project so it sits on top of a standalone app
This commit is contained in:
+10
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user