Created
May 28, 2019 03:42
-
-
Save jeswinsimon/451c52450a2a0caab59dac99dc96662e to your computer and use it in GitHub Desktop.
Find the smallest integer where the SHA256 hash of 'catch-me-if-you-can'+integer will start with 9 zeroes.
This file contains 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 | |
counter=1 | |
key=catch-me-if-you-can | |
value=0 | |
while [[ $value != 000000000* ]] | |
do | |
value=$(echo -n $key+$counter | shasum -a 256) | |
echo $counter | |
echo $value | |
((counter++)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment