<p>Firstly, <strong>it is highly recommended not to use a brainwallet, your coins will be stolen</strong>.</p>

<p>But in general, if you have a private key, there is no way to obtain the 12 word recovery phrase from it. That is because the 12 word phrase is used as a seed to generate a hierarchical deterministic master extended private key, as described in <a href="https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki" rel="noreferrer">BIP 39</a> and <a href="https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" rel="noreferrer">BIP 32</a> and this process is not reversible. Also, your private key is not an <em>extended</em> private key which is needed for an HD wallet, so the best you can do is simply import that single address manually. Some wallets do not support importing of individual addresses for safety, because they wouldn't be covered by the 12 word mnemonic backup. So I would suggest just generating a new wallet and everything and forgetting about your brain wallet.</p>

CC BY-SA 3.0
2017-08-23T01:23:42.490Z
At the time of the BTC fork, my funds were in a single key wallet. So this private key is all I have to access my BCH with. Are there any BCH wallets that will import based on just the private key?
toddmo
CC BY-SA 3.0
2017-08-15T04:20:03.400Z
2017-08-15T04:20:03.400Z
meshcollider
<p>Echoing some of the previous comments, make absolutely certain that your brainwallet password/phrase is as strong as you can construct.  It should be 30 characters or longer, with no, or very few, complete words; it should incorporate multiple sources in order to compound its strength; it should incorporate at least some personal information only you know.</p>

<p>All that being said, let's do this thing:</p>

<ol>
<li><p>Create a hash of your password/passphrase, output in hexadecimal notation.  You can do this using any number of tools, both online and offline.</p></li>
<li><p>Go to the BIP39 generator created by Ian Coleman.  Select the radio button which reveals entropy details.</p></li>
<li><p>Copy/paste your hexadecimal hash output into the entropy box.</p></li>
<li><p>Select the dropdown menu item for Mnemonic length.  12 is the most common seed format.</p></li>
<li><p>The generator will now output a 12-word BIP39 mnemonic, which can be used to seed a wallet.</p></li>
<li><p>I strongly suggest that when you enter the mnemonic, you also select a password, which changes the seed master key without changing the mnemonic, allowing you to share the mnemonic without risking your funds.  This password should also be insanely strong as well.</p></li>
</ol>

<p>Once again, you had better be absolutely certain that your brainwallet password/passphrase is extremely strong, or it will get hijacked and you will lose your funds.</p>

CC BY-SA 4.0
2019-01-21T14:47:11.263Z
This doesn't mean your brainwallet can be imported in this fashion.  You will have to import it manually.

Once you have your wallet software set up, go to the import private key option and follow the instructions.
John C.
CC BY-SA 4.0
2019-01-21T18:16:32.637Z
Human-chosen 30 characters as entropy is definitely not enough to produce a secure private key.  Keys should be generated by a secure random process, and humans are pretty bad at choosing random numbers.
arubi
CC BY-SA 4.0
2019-01-22T11:59:06.383Z
-- "Human-chosen 30 characters as entropy is definitely not enough to produce a secure private key." -- 

Read it again.  I said "minimum 30 characters."  My personal brainwallet is based upon a 65 character password.

-- "humans are pretty bad at choosing random numbers" --

True.  Humans are also pretty bad at remembering random numbers.  Pick your poison.  If you can generate a password with sufficient apparent entropy, but you can easily reconstruct it from information only you know, I would consider that superior to a true random number that you may have a hard time remembering.
John C.
CC BY-SA 4.0
2019-01-21T14:40:57.643Z
2019-01-21T14:40:57.643Z
John C.
<p>The <a href="https://play.google.com/store/apps/details?id=com.coinomi.wallet" rel="nofollow noreferrer">Coinomi Wallet</a> app allows you to "sweep" a paper wallet. This command appears on the context menu after the default wallet is created. </p>

<p>The sweep command allows the user to scan the private key to import the wallet. </p>

<p>The user could then transfer to an HD account if they wanted.</p>

<p><em>Coinomi is a safe app to use to claim your Bitcoin Cash or other Bitcoin forks after the fork. It may take a while for the currency to show up in the wallet after the actual fork. I am not connected with Coinomi.</em></p>

CC BY-SA 3.0
2017-11-26T16:28:36.363Z
2017-11-26T16:28:36.363Z
toddmo
<p>A short working example is worth a 1000 words.</p>

<p>% echo -n "<strong>This is a VERY pooor low entropy brain wallet</strong>" | bx <a href="https://github.com/libbitcoin/libbitcoin-explorer/wiki/bx-base16-encode" rel="noreferrer"><strong>base16-encode</strong></a> | bx <a href="https://github.com/libbitcoin/libbitcoin-explorer/wiki/bx-sha256" rel="noreferrer"><strong>sha256</strong></a> | cut -c 1-32 | bx <a href="https://github.com/libbitcoin/libbitcoin-explorer/wiki/bx-mnemonic-new" rel="noreferrer"><strong>mnemonic-new</strong></a></p>

<p><code>health boil host ostrich fire spike body solar collect harvest catalog crystal</code></p>

<p>Use something like like <a href="http://www.fourmilab.ch/random/" rel="noreferrer"><strong>ent</strong></a> to measure the entropy of you brainwallet text to ensure the text entropy is sufficient, and also apply some common sense to be certain search engines have not indexed your chosen brainwallet text seed. For example "<a href="https://en.wikipedia.org/wiki/List_of_electronic_color_code_mnemonics" rel="noreferrer"><strong>Big Boys Race Our Young Girls But Violet Generally Wins</strong></a>" might satisfy a <strong>ent</strong> entropy test, but will fail a Google/Bing Test. Some other electrician or electrical engineer is likely to pick the same brainwallet seed phrase. Seed phrase <strong>uniqueness</strong> is an absolute must...  </p>

CC BY-SA 4.0
2018-05-30T15:15:33.203Z
pretty amazing command there +1
toddmo
CC BY-SA 4.0
2020-01-15T19:48:47.543Z
Taking advantage of BIP 39 passphrase (adding salt) with sufficient complexity can make the approach above even more secure.
skaht
CC BY-SA 4.0
2022-10-13T18:07:46.370Z
Where to get `bx` from?
pbies
CC BY-SA 4.0
2018-05-30T03:50:38.417Z
2018-06-02T16:35:33.190Z
2018-06-02T16:35:33.190Z
skaht
<p>I created a brain wallet with a non standard phrase.</p>

<p>So I have that, the private and public keys.</p>

<p>Now this wallet app wants a 12 word recovery phrase to set up the wallet.</p>

<p>How can I convert what I have into a 12-word phrase that it can use?</p>

<wallet-recovery><mnemonic-seed>
How to generate recovery phrase from private key
toddmo
# How to generate recovery phrase from private key

(Asked by: username_0 on 2017-08-15)

I created a brain wallet with a non standard phrase.

So I have that, the private and public keys.

Now this wallet app wants a 12 word recovery phrase to set up the wallet.

How can I convert what I have into a 12-word phrase that it can use?

**Tags:** wallet-recovery, mnemonic-seed


---

## 4 answers

### Answer by username_4 on 2018-05-30. Score: 6 | Accepted answer

A short working example is worth a 1000 words.

% echo -n "**This is a VERY pooor low entropy brain wallet**" | bx [**base16-encode**](https://github.com/libbitcoin/libbitcoin-explorer/wiki/bx-base16-encode) | bx [**sha256**](https://github.com/libbitcoin/libbitcoin-explorer/wiki/bx-sha256) | cut -c 1-32 | bx [**mnemonic-new**](https://github.com/libbitcoin/libbitcoin-explorer/wiki/bx-mnemonic-new)

`health boil host ostrich fire spike body solar collect harvest catalog crystal`

Use something like like [**ent**](http://www.fourmilab.ch/random/) to measure the entropy of you brainwallet text to ensure the text entropy is sufficient, and also apply some common sense to be certain search engines have not indexed your chosen brainwallet text seed. For example "[**Big Boys Race Our Young Girls But Violet Generally Wins**](https://en.wikipedia.org/wiki/List_of_electronic_color_code_mnemonics)" might satisfy a **ent** entropy test, but will fail a Google/Bing Test. Some other electrician or electrical engineer is likely to pick the same brainwallet seed phrase. Seed phrase **uniqueness** is an absolute must...

> **Comments:**
> **username_0**: pretty amazing command there +1  
> **username_4**: Taking advantage of BIP 39 passphrase (adding salt) with sufficient complexity can make the approach above even more secure.  
> **username_5**: Where to get `bx` from?  

---

### Answer by username_1 on 2017-08-15. Score: 5

Firstly, **it is highly recommended not to use a brainwallet, your coins will be stolen**.

But in general, if you have a private key, there is no way to obtain the 12 word recovery phrase from it. That is because the 12 word phrase is used as a seed to generate a hierarchical deterministic master extended private key, as described in [BIP 39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki) and [BIP 32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) and this process is not reversible. Also, your private key is not an *extended* private key which is needed for an HD wallet, so the best you can do is simply import that single address manually. Some wallets do not support importing of individual addresses for safety, because they wouldn't be covered by the 12 word mnemonic backup. So I would suggest just generating a new wallet and everything and forgetting about your brain wallet.

> **Comments:**
> **username_0**: At the time of the BTC fork, my funds were in a single key wallet. So this private key is all I have to access my BCH with. Are there any BCH wallets that will import based on just the private key?  

---

### Answer by username_2 on 2019-01-21. Score: 2

Echoing some of the previous comments, make absolutely certain that your brainwallet password/phrase is as strong as you can construct. It should be 30 characters or longer, with no, or very few, complete words; it should incorporate multiple sources in order to compound its strength; it should incorporate at least some personal information only you know.

All that being said, let's do this thing:

1. Create a hash of your password/passphrase, output in hexadecimal notation. You can do this using any number of tools, both online and offline.
2. Go to the BIP39 generator created by Ian Coleman. Select the radio button which reveals entropy details.
3. Copy/paste your hexadecimal hash output into the entropy box.
4. Select the dropdown menu item for Mnemonic length. 12 is the most common seed format.
5. The generator will now output a 12-word BIP39 mnemonic, which can be used to seed a wallet.
6. I strongly suggest that when you enter the mnemonic, you also select a password, which changes the seed master key without changing the mnemonic, allowing you to share the mnemonic without risking your funds. This password should also be insanely strong as well.

Once again, you had better be absolutely certain that your brainwallet password/passphrase is extremely strong, or it will get hijacked and you will lose your funds.

> **Comments:**
> **username_2**: This doesn't mean your brainwallet can be imported in this fashion.  You will have to import it manually.  Once you have your wallet software set up, go to the import private key option and follow the instructions.  
> **username_3**: Human-chosen 30 characters as entropy is definitely not enough to produce a secure private key.  Keys should be generated by a secure random process, and humans are pretty bad at choosing random numbers.  
> **username_2**: -- "Human-chosen 30 characters as entropy is definitely not enough to produce a secure private key." --   Read it again.  I said "minimum 30 characters."  My personal brainwallet is based upon a 65 character password.  -- "humans are pretty bad at choosing random numbers" --  True.  Humans are also pretty bad at remembering random numbers.  Pick your poison.  If you can generate a password with sufficient apparent entropy, but you can easily reconstruct it from information only you know, I would consider that superior to a true random number that you may have a hard time remembering.  

---

### Answer by username_0 on 2017-11-26. Score: 1

The [Coinomi Wallet](https://play.google.com/store/apps/details?id=com.coinomi.wallet) app allows you to "sweep" a paper wallet. This command appears on the context menu after the default wallet is created.

The sweep command allows the user to scan the private key to import the wallet.

The user could then transfer to an HD account if they wanted.

*Coinomi is a safe app to use to claim your Bitcoin Cash or other Bitcoin forks after the fork. It may take a while for the currency to show up in the wallet after the actual fork. I am not connected with Coinomi.*


---

