Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 2.2 KB

README.md

File metadata and controls

59 lines (42 loc) · 2.2 KB

UPDATE : please don't use this. You should always use a HD Wallet. This is kept here for historical reasons and as a technical curiosity only.

bitcoin-keygen

Ruby script to generate Bitcoin "brain wallet" from any given STDIN input.

The resulting private key will be written in WIF (Wallet Import Format) to STDOUT.

Please read the warnings about Brain Wallets

** USE AT YOUR OWN RISK **

Example usage:

# Generate wallet from a passphrase
echo -n "Hello World" | bitcoin-keygen
=> 5K5CpQZtUvPqwk2UE1FAiWC1nPV1WYqMnEhMYy2WTiMz3J1u9nm

# Generate wallet from a file with a passphrase in it
echo -n "Hello World" > passphrase.txt
cat passphrase.txt | bitcoin-keygen
=> 5K5CpQZtUvPqwk2UE1FAiWC1nPV1WYqMnEhMYy2WTiMz3J1u9nm

# Generate wallet from an image on disk
cat image1.jpg | bitcoin-keygen
=> 5KQn311se4ZeDDC2o5uwnHLnZhshMNFYs7w57fh2k1oPwwYoN9V

# Generate wallet from a combination of two images on disk
cat image1.jpg image2.jpg | bitcoin-keygen
=> 5Hzz8CHiD6FCyETGu1X3UeHWqrAbDVKnUag5QQWDTBmGXfjhgDE

License

The MIT License (MIT)

Copyright (c) 2013 Potiguar Faga

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.