mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-03-30 15:08:32 +00:00
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:
commit
659c6f23d2
@ -269,6 +269,7 @@ SecretKey.prototype.decrypt = function (passphrase) {
|
||||
}
|
||||
this.mpi = this.mpi.concat(parsedMPI);
|
||||
this.isDecrypted = true;
|
||||
this.encrypted = null;
|
||||
return true;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user