<p>The simplest and most common way of doing this is to do SHA256(passphrase) and to use the result as your private key. You can e.g. use the "Brain wallet" tab on <a href="https://www.bitaddress.org">www.bitaddress.org</a> which is all javascript so that you can download it and do everything offline for increased security.</p>

<p>Be aware though that your pass phrase must be <strong>really long</strong> and <strong>truly unique</strong> since if someone would use the same pass phrase they would have access to your money. The comment from Pieter Wuille above is worth repeating:</p>

<blockquote>
  <p>Be aware that when you do this, you expose your wallet to the entire
  world to do a brute-force attack on your password. If many people
  start doing this, it may become very profitable to try to find their
  passwords. Software like Armory and Electrum have the ability to
  generate a determinsitic wallet from a 'seed', but this seed is still
  randomly generated, in order to be sure that it is hard to attack</p>
</blockquote>

CC BY-SA 3.0
2012-08-23T16:23:02.840Z
To put some numbers on how long and unique it has to be, to be confident in its security, you should pick a passphrase such that an attacker would be expected to need to guess at least a billion billion passphrases before he'd come up with yours. For example, a passphrase that would probably be considered just barely strong enough would be `firefly 80 m00se!`
David Schwartz
CC BY-SA 3.0
2012-08-21T12:32:16.273Z
2012-08-21T12:37:29.883Z
2012-08-21T12:37:29.883Z
D.H.
<p>You ought to look into solutions such as <a href="http://brainwallet.org/" rel="nofollow">Brainwallet</a>. It hashes your passphrase into a Bitcoin address.</p>

CC BY-SA 3.0
2012-08-21T12:04:35.210Z
2012-08-21T12:04:35.210Z
ThePiachu
<p>Yes, you can. It's named Brain Wallet but... Both answears (@ThePiachu and @D.H.) lead you to catastrophy. Don't use external tools to create your brain wallet. Do it on your own on your PC disconnected from Intenet. There is a lot of tools to count SHA256 on your own. When you creating your passphrase use not only alphanumeric characters but also other.</p>

CC BY-SA 3.0
2015-08-25T20:24:56.793Z
2015-08-25T20:24:56.793Z
Sebastian Xawery Wiśniowiecki
<p>Is there a way to use a long (and possibly hashed) passphrase as a private key, so that all I need to recover my Bitcoins would be that password?</p>

<p>I was thinking of buying Bitcoins using a private key that's generated from a passphrase, and then deleting the Bitcoins software entirely. When I want to use my Bitcoins in the future, I will re-create the key using the password. This will eliminate the possibility of stealing my Bitcoins by hacking to my computer.</p>

CC BY-SA 3.0
2012-08-21T12:20:35.153Z
Be aware that when you do this, you expose your wallet to the entire world to do a brute-force attack on your password. If many people start doing this, it may become very profitable to try to find their passwords. Software like Armory and Electrum have the ability to generate a determinsitic wallet from a 'seed', but this seed is still randomly generated, in order to be sure that it is hard to attack.
Pieter Wuille
<private-key><passphrase>
Can I use a passphrase as a private key?
Adam Matan
# Can I use a passphrase as a private key?

(Asked by: username_0 on 2012-08-21)

Is there a way to use a long (and possibly hashed) passphrase as a private key, so that all I need to recover my Bitcoins would be that password?

I was thinking of buying Bitcoins using a private key that's generated from a passphrase, and then deleting the Bitcoins software entirely. When I want to use my Bitcoins in the future, I will re-create the key using the password. This will eliminate the possibility of stealing my Bitcoins by hacking to my computer.

**Tags:** private-key, passphrase

> **Comments:**
> **username_1**: Be aware that when you do this, you expose your wallet to the entire world to do a brute-force attack on your password. If many people start doing this, it may become very profitable to try to find their passwords. Software like Armory and Electrum have the ability to generate a determinsitic wallet from a 'seed', but this seed is still randomly generated, in order to be sure that it is hard to attack.  

---

## 3 answers

### Answer by username_2 on 2012-08-21. Score: 10

The simplest and most common way of doing this is to do SHA256(passphrase) and to use the result as your private key. You can e.g. use the "Brain wallet" tab on [www.bitaddress.org](https://www.bitaddress.org) which is all javascript so that you can download it and do everything offline for increased security.

Be aware though that your pass phrase must be **really long** and **truly unique** since if someone would use the same pass phrase they would have access to your money. The comment from username_1 username_1 above is worth repeating:

> Be aware that when you do this, you expose your wallet to the entire
> world to do a brute-force attack on your password. If many people
> start doing this, it may become very profitable to try to find their
> passwords. Software like Armory and Electrum have the ability to
> generate a determinsitic wallet from a 'seed', but this seed is still
> randomly generated, in order to be sure that it is hard to attack

> **Comments:**
> **username_3**: To put some numbers on how long and unique it has to be, to be confident in its security, you should pick a passphrase such that an attacker would be expected to need to guess at least a billion billion passphrases before he'd come up with yours. For example, a passphrase that would probably be considered just barely strong enough would be `firefly 80 m00se!`  

---

### Answer by username_4 on 2012-08-21. Score: 3

You ought to look into solutions such as [Brainwallet](http://brainwallet.org/). It hashes your passphrase into a Bitcoin address.


---

### Answer by username_5 on 2015-08-25. Score: 1

Yes, you can. It's named Brain Wallet but... Both answears (@username_4 and @D.H.) lead you to catastrophy. Don't use external tools to create your brain wallet. Do it on your own on your PC disconnected from Intenet. There is a lot of tools to count SHA256 on your own. When you creating your passphrase use not only alphanumeric characters but also other.


---

