<blockquote>
<p>Will EVERY address I'll generate AFTER the passphrase will NOT be accessible to the old copy (Before the passphrase)</p>
</blockquote>
<p>Correct. When encrypting a wallet, every key/address used from that point on will be new and encrypted. The wallet will not delete the old keys of course, otherwise it would lose all the funds before encryption. But from that point on, it will never give you an address from before encryption. There is no luck involved, beyond the usual negligible address collision probability.</p>

CC BY-SA 4.0
2022-01-05T03:18:07.833Z
2022-01-05T03:18:07.833Z
meshcollider
<p>Say I generate a passphrase with bitcoin core to a wallet.dat, but also have a copy of it before the passphrase generation. Will EVERY address I'll generate AFTER the passphrase will NOT be accessible to the old copy (Before the passphrase) or is it a matter of luck – some addresses will be generated with the old keys and some with the new?</p>

<bitcoin-core><address-generation><wallet.dat><passphrase>
Addresses After passphrase generation in wallet.dat
mikest
# Addresses After passphrase generation in wallet.dat

(Asked by: username_0 on 2022-01-04)

Say I generate a passphrase with bitcoin core to a wallet.dat, but also have a copy of it before the passphrase generation. Will EVERY address I'll generate AFTER the passphrase will NOT be accessible to the old copy (Before the passphrase) or is it a matter of luck – some addresses will be generated with the old keys and some with the new?

**Tags:** bitcoin-core, address-generation, wallet.dat, passphrase


---

## 1 answers

### Answer by username_1 on 2022-01-05. Score: 2 | Accepted answer

> Will EVERY address I'll generate AFTER the passphrase will NOT be accessible to the old copy (Before the passphrase)

Correct. When encrypting a wallet, every key/address used from that point on will be new and encrypted. The wallet will not delete the old keys of course, otherwise it would lose all the funds before encryption. But from that point on, it will never give you an address from before encryption. There is no luck involved, beyond the usual negligible address collision probability.


---

