Created
February 14, 2019 16:51
-
-
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
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
#!/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