Author

Topic: is this Python Code working ? Wallet Maker. (Read 241 times)

HCP
legendary
Activity: 2086
Merit: 4361
August 13, 2017, 10:20:47 AM
#4
You may find that you need to "tidy up" the 'line' variable before passing it to sha256()... it is quite possible that when you read it from the file, it is including a carriage return/line feed/new line type character(s) at the end of the line... that character will change the sha256 value

Try stripping all whitespace from the end... somethine like:
Code:
   priv = sha256( line.rstrip() )
newbie
Activity: 11
Merit: 0
Thanks Jackg.
so i need install ? i run this code and its export addresses.but wrong i think.

about passwords i mixed them and add into file.txt and then its export the address.txt
address generated 789 qty but i dont think they was CORRECT Address based on PASSWORD.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
That code might work.

I think you'd have to search for pybitcointools library and install that.

I think there's a repository on github for it (and yes it works on Windows, I installed it a few days ago on Windows 7).
There's nothing about the password in that code though in the snip you posted.
newbie
Activity: 11
Merit: 0
Hello guys.
i dont know from what user i take this file.
but it seems not working ..

goal :a freind who have 3BTC ( from old days ) asking me to help to recover.
he provide me his famouse 20 most words (his daughter and wife ) and i convert to diffrent types like :
i love you sara and i love you maxxx
I Love You Sara and i Love You Maxxx
!@I Love You Sara and i Love You Maxxx
!@#$I Love You Sara and i Love You Maxxx
and its like 600-700 at all.

i want to check this for him ( i know the chanse is like 0.000099% but i want to give a try , cause he really need some cash for his family )

i want to make address and check if it have the balance in it.
there is already some tools like BrainFlay and ... buts they are for professional usage like million try and i dont need.
can someone check this code is work ?
i test my old pass i have but the address is generated didnt show my old trans.
but this : https://brainwalletx.github.io/ showed the right address.
its hard to check this by hand for 700 try.
any suggest ?
p.s : i have windows , no linux.

Code:
from pybitcointools import *
import sys
filename  = open("address.txt",'w')
sys.stdout = filename
print "Anything printed will go to the output file"

with open('file.txt') as textfile:
    for line in textfile:
       priv = sha256(line)
       pub = privtopub(priv)
       addr = pubtoaddr(pub)
       print addr
       print priv
Jump to: