Hide armored header version and comment

This commit is contained in:
Thomas Oberndörfer 2019-03-02 15:04:13 +01:00
parent 8d18614f17
commit 914e63a8ee

View File

@ -29,6 +29,10 @@ const KEY_END = '-----END PGP PUBLIC KEY BLOCK-----';
* A simple wrapper around OpenPGP.js
*/
class PGP {
constructor() {
openpgp.config.show_version = false;
openpgp.config.show_comment = false;
}
/**
* Parse an ascii armored pgp key block and get its parameters.
* @param {String} publicKeyArmored ascii armored pgp key block