Author

Topic: Tool to create Private / Public Key from random words? (Read 917 times)

newbie
Activity: 10
Merit: 1
If you are lucky, you can get an address with priv key in nect 1000 years, which have balanced non-zero.
extremely, extremely, extremely, extremely, extremely, extremely lucky*
member
Activity: 78
Merit: 10
You want to make a brute force attack to random addresses. You can create random addresses without words with python.

from bitcoin import *

for addr in range(1000): // 1000 results shown each
    priv = sha256(random_key())
    pub = privtopub(priv)
    addr = pubtoaddr(pub)
           print (addr)
           print (priv)

If you are lucky, you can get an address with priv key in nect 1000 years, which have balanced non-zero.
legendary
Activity: 3122
Merit: 2178
Playgram - The Telegram Casino
[...]

Code:
from bitcoin import *

myVariable = "taco public free convenient garbage gumball"

priv = sha256(myVariable)
privwif = encode_privkey(priv, 'wif')
privpub = privtopub(priv)
addr = pubtoaddr(privpub)
print(privwif)
print(addr)

Then save the file, and run it (F5).

Code:
5KWLNBRD7SzYgG53odgvUCki59ccHCGHv4tryExbVsR8FPZ3pPF
14psgZLp3uYo6kvQEtzTXRC1FxdDsuG2fN

Perfect this is what I am after

If you rely on sha256 you should use a really long passphrase though. Something like 50 words or more. Problem being, while not broken, sha256 is rather easily brute forced nowadays, which is why it's also not recommended for storing passwords in databases anymore.

Alternatively you could use a more work intensive hashing algorithm such as bcrypt, scrypt or Argon2. However I personally am not familiar enough with Python to recommend any libraries that provide these hashing functions.
legendary
Activity: 1722
Merit: 1000
Best to learn to do it yourself so you know you can re-create it in 10 years, you won't have to rely on bitaddress or whoever to still be around.
Probably one of the easiest things to do in python, even for non-programmers.

Download python 3.X
Install, make sure to check to include IDLE and adding python pip to PATH

Open command prompt and type
Code:
pip install bitcoin
Code:
pip install pybitcointools

Now open up Python IDLE, file -> new

include the bitcoin package

Code:
 from bitcoin import *

Create a variable that includes your random words

Code:
myVariable = "taco public free convenient garbage gumball"

Then run it through a sha256 hash

Code:
priv = sha256(myVariable)

Now you can encode it into a WIF private key

Code:
privwif = encode_privkey(priv, 'wif')

Then to get the corresponding address, encode the public key then encode to base58

Code:
privpub = privtopub(priv)
addr = pubtoaddr(privpub)
print out what you want
Code:
from bitcoin import *

myVariable = "taco public free convenient garbage gumball"

priv = sha256(myVariable)
privwif = encode_privkey(priv, 'wif')
privpub = privtopub(priv)
addr = pubtoaddr(privpub)
print(privwif)
print(addr)

Then save the file, and run it (F5).

Code:
5KWLNBRD7SzYgG53odgvUCki59ccHCGHv4tryExbVsR8FPZ3pPF
14psgZLp3uYo6kvQEtzTXRC1FxdDsuG2fN

Perfect this is what I am after
legendary
Activity: 1442
Merit: 1186
Code:
from bitcoin import *

myVariable = "taco public free convenient garbage gumball"

priv = sha256(myVariable)
privwif = encode_privkey(priv, 'wif')
privpub = privtopub(priv)
addr = pubtoaddr(privpub)
print(privwif)
print(addr)

Code:
5KWLNBRD7SzYgG53odgvUCki59ccHCGHv4tryExbVsR8FPZ3pPF
14psgZLp3uYo6kvQEtzTXRC1FxdDsuG2fN
Just out of curiosity, is there actually a way where you can find your words by only having a private key? I mean like decoding these random numbers and letters into the words behind it?

Like finding out "taco public free convenient garbage gumball", by having only "5KWLNBRD7SzYgG53odgvUCki59ccHCGHv4tryExbVsR8FPZ3pPF
14psgZLp3uYo6kvQEtzTXRC1FxdDsuG2fN" available.

No, sha256 is a one-way hash function. To get the words from just a private key, sha256 would have to be broken and bitcoin would need to change it's base layer crypto algorithm.
full member
Activity: 282
Merit: 100
Code:
from bitcoin import *

myVariable = "taco public free convenient garbage gumball"

priv = sha256(myVariable)
privwif = encode_privkey(priv, 'wif')
privpub = privtopub(priv)
addr = pubtoaddr(privpub)
print(privwif)
print(addr)

Code:
5KWLNBRD7SzYgG53odgvUCki59ccHCGHv4tryExbVsR8FPZ3pPF
14psgZLp3uYo6kvQEtzTXRC1FxdDsuG2fN
Just out of curiosity, is there actually a way where you can find your words by only having a private key? I mean like decoding these random numbers and letters into the words behind it?

Like finding out "taco public free convenient garbage gumball", by having only "5KWLNBRD7SzYgG53odgvUCki59ccHCGHv4tryExbVsR8FPZ3pPF
14psgZLp3uYo6kvQEtzTXRC1FxdDsuG2fN" available.
legendary
Activity: 1442
Merit: 1186
Best to learn to do it yourself so you know you can re-create it in 10 years, you won't have to rely on bitaddress or whoever to still be around.
Probably one of the easiest things to do in python, even for non-programmers.

Download python 3.X
Install, make sure to check to include IDLE and adding python pip to PATH

Open command prompt and type
Code:
pip install bitcoin
Code:
pip install pybitcointools

Now open up Python IDLE, file -> new

include the bitcoin package

Code:
 from bitcoin import *

Create a variable that includes your random words

Code:
myVariable = "taco public free convenient garbage gumball"

Then run it through a sha256 hash

Code:
priv = sha256(myVariable)

Now you can encode it into a WIF private key

Code:
privwif = encode_privkey(priv, 'wif')

Then to get the corresponding address, encode the public key then encode to base58

Code:
privpub = privtopub(priv)
addr = pubtoaddr(privpub)
print out what you want
Code:
from bitcoin import *

myVariable = "taco public free convenient garbage gumball"

priv = sha256(myVariable)
privwif = encode_privkey(priv, 'wif')
privpub = privtopub(priv)
addr = pubtoaddr(privpub)
print(privwif)
print(addr)

Then save the file, and run it (F5).

Code:
5KWLNBRD7SzYgG53odgvUCki59ccHCGHv4tryExbVsR8FPZ3pPF
14psgZLp3uYo6kvQEtzTXRC1FxdDsuG2fN
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
Brainwallet is incredibly insecure. Unless you can be certain that no one would ever, I mean ever, guess your passphrase, then you can use it, just don't store too much.

If you'd like, you can try using this: https://keybase.io/warp/. It is safer* than regular brainwallets due to the different technique in generating the brainwallet and also having it salted.

*It is by no means anywhere as safe as generating an address from your desktop wallet.
full member
Activity: 378
Merit: 197
Something where you pick like 16, 36.. 400? words and it gives you a combo ?
You can create a brainwallet in https://www.bitaddress.org/ by selecting the tab "brain wallet"
It will create your address and private key from words or phrases.

I would not recommend it though.
Brainwallets are insecure. Many of them have been hacked.
You might think you are selecting random words, but they probably are not as random as you think, and that helps attaker in cracking your key.
legendary
Activity: 1722
Merit: 1000
Something where you pick like 16, 36.. 400? words and it gives you a combo ?
Jump to: