From 58aa91d08148f8290a8a55865f874799c0fa3d92 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 29 Jun 2021 10:37:05 +0200 Subject: [PATCH] Remove comments from encryption --- static/scripts.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/scripts.js b/static/scripts.js index 1345b0b..9c5a418 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -58,9 +58,14 @@ if (elFormEncrypt) { await fetchProfileKey(); // Encrypt the message + let config = openpgp.config; + config.show_comment = false; + config.show_version = false; + encrypted = await openpgp.encrypt({ message: openpgp.message.fromText(elFormEncrypt.querySelector('.input').value), - publicKeys: window.kx.key.object + publicKeys: window.kx.key.object, + config: config }); elFormEncrypt.querySelector('.output').value = encrypted.data; } catch (e) {