dimanche 4 février 2018

Python Random String Sha256 Hasher

I wanted to create a python program that first takes a input (which is a sha256hash) named inputhash. Then takes numbers 0 to 9 and letters a to z (which is 36 total options)and rearranges them in 32 spots and saves it into a str variable, lets say its randomstring. Then chooses a random number(lets say its called correctnumber) from 0 to 99 and places that number at the end of randomstring. Finally it hashes(sha256) randomstring and if it doesnt match inputhash it repeats the process till it does. When it finally does it prints the variable correctnumber.




Aucun commentaire:

Enregistrer un commentaire