Bitcoin Forum
July 09, 2024, 11:42:23 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Script to create a BrainWallet  (Read 2103 times)
MineForeman.com (OP)
Legendary
*
Offline Offline

Activity: 896
Merit: 1000



View Profile WWW
November 19, 2012, 02:56:46 AM
 #1

Hi All,

Does anyone have a script to create a brain wallet?  Preferably in php as that is what I mostly use (I am not a real programmer, I am more into the systems administration side).

Its not to actually use to generate brain wallets, it is more so I can just go through the process step by step and turn something like "The cat sat on the mat" onto a public and private key.

Thanks

Bitcoin News http://mineforeman.com/ || MinePeon - Bitcoin mining on the Raspberry PI http://mineforeman.com/minepeon/ || MinePeon Wiki http://minepeon.com/ || MinePeon Forums http://minepeon.com/forums/
gusti
Legendary
*
Offline Offline

Activity: 1099
Merit: 1000


View Profile
November 19, 2012, 03:30:09 AM
 #2

http://brainwallet.org
https://www.bitaddress.org

If you don't own the private keys, you don't own the coins.
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386
Merit: 1136


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
November 19, 2012, 03:30:29 AM
 #3

I wrote a utility for Windows (with source) that can do this: https://casascius.com/btcaddress.zip

Looks like brainwallet.org also has an implementation in javascript.

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper or hardware wallets instead.
MineForeman.com (OP)
Legendary
*
Offline Offline

Activity: 896
Merit: 1000



View Profile WWW
November 19, 2012, 03:45:13 AM
 #4

Sorry, I will try to make myself more clear, I am not interested in something that can already do it I am interested in the steps that are done to accomplish it. 

It's more of an exercise for me to learn than anything else.  For example (using PHP);-

<?php

$phrase = "the cat sat on the mat";

$sha256 = hash(sha256, $phrase , false);

$ripemd160  = "00" . hash(ripemd160, $sha256, false);

etc...

I will download the source to your utility casascius and see what I can work out.

Bitcoin News http://mineforeman.com/ || MinePeon - Bitcoin mining on the Raspberry PI http://mineforeman.com/minepeon/ || MinePeon Wiki http://minepeon.com/ || MinePeon Forums http://minepeon.com/forums/
MineForeman.com (OP)
Legendary
*
Offline Offline

Activity: 896
Merit: 1000



View Profile WWW
November 19, 2012, 03:54:01 AM
 #5

Further info,

I am looking for something sort of like this;-

https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses

But having a brainwallet phrase as the start point instead of a private ECDSA key.  Sorry if I am asking for something so basic, I just want to get my head around the brain wallet concept.

Thanks

Bitcoin News http://mineforeman.com/ || MinePeon - Bitcoin mining on the Raspberry PI http://mineforeman.com/minepeon/ || MinePeon Wiki http://minepeon.com/ || MinePeon Forums http://minepeon.com/forums/
gusti
Legendary
*
Offline Offline

Activity: 1099
Merit: 1000


View Profile
November 19, 2012, 04:00:54 AM
 #6

here you have python script to generate addresses :

https://github.com/weex/addrgen/blob/master/addrgen.py


If you don't own the private keys, you don't own the coins.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!