diff options
author | Marvin Borner | 2019-01-28 20:58:03 +0100 |
---|---|---|
committer | Marvin Borner | 2019-01-28 20:58:03 +0100 |
commit | 722f45dde0d71a19e06079193486daa4fde1a412 (patch) | |
tree | 7fbfb49048512dcc0cb4546aa8b5092dcec95616 /public/scripts/chat.js | |
parent | c0c579100e36d999559a7e34d25e4f45addc4830 (diff) |
Added encryption signing
Diffstat (limited to 'public/scripts/chat.js')
-rw-r--r-- | public/scripts/chat.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/scripts/chat.js b/public/scripts/chat.js index 36cfdf1..42e6a29 100644 --- a/public/scripts/chat.js +++ b/public/scripts/chat.js @@ -131,7 +131,7 @@ function chat() { console.log(`[LOG] Sending message '${message}' to ${connectedPeer.peer}`); connectedPeer.send({ type: 'text', - data: await encryption.encrypt(message, await encryption.get(connectedPeer.peer)) + data: await encryption.encrypt(message, await encryption.get(connectedPeer.peer), await encryption.getPrivate(), passphrase) }); await receivedMessage(message, true); } |