Remove comments from encryption

This commit is contained in:
Yarmo Mackenbach 2021-06-29 10:37:05 +02:00
parent 59411ec176
commit 58aa91d081
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -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) {