Merge pull request #493 from openpgpjs/armored_decrypted_key_fix

Reset secret key's encrypted field to null after decryption
This commit is contained in:
Bart Butler 2016-10-26 16:58:07 -07:00 committed by GitHub
commit 659c6f23d2

View File

@ -269,6 +269,7 @@ SecretKey.prototype.decrypt = function (passphrase) {
}
this.mpi = this.mpi.concat(parsedMPI);
this.isDecrypted = true;
this.encrypted = null;
return true;
};