Created
January 26, 2014 16:18
-
-
Save rolfvreijdenberger/8635153 to your computer and use it in GitHub Desktop.
bitcoin brain wallet private key generator. enter the seed / brain wallet phrase and it returns the private key in hex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# creates a private key from a 'brain wallet' | |
if [ -z "$1" ]; then | |
echo "provide the bitcoin brain wallet seed to get the private key:"; | |
read SEED; | |
else | |
SEED=$1; | |
fi | |
echo "seed (brain wallet): $SEED"; | |
echo -n "bitcoin private key: "; | |
echo -n "$SEED" | openssl dgst -sha256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment