forked from Mirrors/keyoxide-web
Remove comments from encryption
This commit is contained in:
parent
59411ec176
commit
58aa91d081
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue