<p>No, because the encrypted keys don't change in that case.</p>

<p>When you encrypt a wallet.dat file, a random master key is generated, the master key is encrypted using your passphrase, and the actual address keys are encrypted using the master key.</p>

<p>When you change the passphrase, only the encrypted master key is changed.</p>

CC BY-SA 3.0
2013-07-31T21:45:34.847Z
2013-07-31T21:45:34.847Z
Pieter Wuille
<p>In Bitcoin-qt, when a previously unencrypted wallet is encrypted, the keypool is erased and replaced with new keys.</p>

<p>Does this also happen when the password of an already encrypted wallet is changed?</p>

<security><bitcoin-core><encryption><passphrase><keypool>
Is the keypool erased when changing wallet password?
Meni Rosenfeld
# Is the keypool erased when changing wallet password?

(Asked by: username_0 on 2013-07-31)

In Bitcoin-qt, when a previously unencrypted wallet is encrypted, the keypool is erased and replaced with new keys.

Does this also happen when the password of an already encrypted wallet is changed?

**Tags:** security, bitcoin-core, encryption, passphrase, keypool


---

## 1 answers

### Answer by username_1 on 2013-07-31. Score: 2 | Accepted answer

No, because the encrypted keys don't change in that case.

When you encrypt a wallet.dat file, a random master key is generated, the master key is encrypted using your passphrase, and the actual address keys are encrypted using the master key.

When you change the passphrase, only the encrypted master key is changed.


---

