<p>The key point here is that vanitygen is not deterministic - It relies on entropy provided by the system it is running on, which is why running it multiple times with the same pattern will produce different addresses.</p>

<p>As long as the entropy provided by the system used to generate the address is sufficiently random, keys produced by vanity gen are as good as keys produced by any other program that would have used the same entropy.</p>

<p>Naturally, you should be verifying that the binary you are running matches the source code, and is using a good source of randomness, before moving any funds to those addresses.</p>

CC BY-SA 4.0
2019-06-17T07:36:33.397Z
2019-06-17T07:36:33.397Z
Raghav Sood
<p>I’m not talking about <a href="https://bitcoin.stackexchange.com/questions/45743/is-it-really-safe-to-use-vanitygen-to-generate-your-unique-bitcoin-address">whether <em>Vanitygen</em> can crack an <em>any</em> existing wallet or not</a>. I know it is practically impossible, considering the computational resources required.</p>
<hr />
<p>But what if, it’s to crack vanity addresses generated by itself, <a href="https://en.bitcoin.it/wiki/Vanitygen" rel="nofollow noreferrer"><em>Vanitygen</em></a>?</p>
<p>If <em>Vanitygen</em> is deterministic and does not take any input (such as a seed) other than the desired pattern, in other words, does not walk along random steps, given the pattern input is the same, it would <em>always</em> require the same amount of computational resources to generate the identical first match, which is mostly affordable.</p>
<p>Do <em>Vanitygen</em> have some kind of countermeasures for this problem? Is it safe to use <em>Vanitygen</em>-generated wallets, free of the threat of <em>Vanitygen</em>-regen?</p>

<wallet-security><vanity-address><vanitygen>
Are vanity addresses Vanitygen generated really safe to use?
Константин Ван
# Are vanity addresses Vanitygen generated really safe to use?

(Asked by: username_0 on 2019-06-17)

I’m not talking about [whether *Vanitygen* can crack an *any* existing wallet or not](https://bitcoin.stackexchange.com/questions/45743/is-it-really-safe-to-use-vanitygen-to-generate-your-unique-bitcoin-address). I know it is practically impossible, considering the computational resources required.

---

But what if, it’s to crack vanity addresses generated by itself, [*Vanitygen*](https://en.bitcoin.it/wiki/Vanitygen)?

If *Vanitygen* is deterministic and does not take any input (such as a seed) other than the desired pattern, in other words, does not walk along random steps, given the pattern input is the same, it would *always* require the same amount of computational resources to generate the identical first match, which is mostly affordable.

Do *Vanitygen* have some kind of countermeasures for this problem? Is it safe to use *Vanitygen*-generated wallets, free of the threat of *Vanitygen*-regen?

**Tags:** wallet-security, vanity-address, vanitygen


---

## 1 answers

### Answer by username_1 on 2019-06-17. Score: 3 | Accepted answer

The key point here is that vanitygen is not deterministic - It relies on entropy provided by the system it is running on, which is why running it multiple times with the same pattern will produce different addresses.

As long as the entropy provided by the system used to generate the address is sufficiently random, keys produced by vanity gen are as good as keys produced by any other program that would have used the same entropy.

Naturally, you should be verifying that the binary you are running matches the source code, and is using a good source of randomness, before moving any funds to those addresses.


---

