updated build system

This commit is contained in:
Marc Wäckerlin
2018-04-04 20:19:13 +00:00
parent 1f1ae4936d
commit 3b965156ad
13 changed files with 862 additions and 394 deletions

View File

@@ -26,11 +26,11 @@ module.exports = function(chatserver, keyserver) {
privateKeys: privkey
}).then(function(ciphertext) {
openpgp.decrypt({
message: ciphertext,
message: openpgp.message.readArmored(ciphertext.data),
publicKeys: openpgp.key.readArmored(_user.key.pub).keys[0],
privateKey: privkey
}).then(function(plaintext) {
if (data==plaintext) {
if (data==plaintext.data) {
success(_user)
} else {
fail('local key does not match key on server')