Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kirkins
Created February 14, 2019 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirkins/378b91d0da7536e271d84385a7c87caf to your computer and use it in GitHub Desktop.
Save kirkins/378b91d0da7536e271d84385a7c87caf to your computer and use it in GitHub Desktop.
Generate private bitcoin keys from 15 word combinations of words, input number of keys to create
#!/usr/bin/env bash
# first input should be number of private keys to generate
for ((i=1;i<=$1;i++));
do
WORDS=15; LC_ALL=C grep -x '[a-z]*' /usr/share/dict/words \
| shuf --random-source=/dev/urandom -n ${WORDS} | paste -sd " " \
| sha256sum | cut -f 1 -d " "
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment