Skip to content

Instantly share code, notes, and snippets.

@rolfvreijdenberger
Created January 26, 2014 16:18
Show Gist options
  • Save rolfvreijdenberger/8635153 to your computer and use it in GitHub Desktop.
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
#!/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