Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib
- def hash(value):
- m = hashlib.sha256()
- m.update(value.encode())
- return m.hexdigest()
- def hashString(oldHash,newValue):
- i=0
- while True:
- s = hash(str(i)+"::"+oldHash+"::"+newValue)
- if s[:4] == "0000":
- print(i)
- print(s)
- return s
- i += 1
- hash0 = "00004257eca8a841343564e90f7a19289fa604f9db307a709136c78fd580f540b196"
- hash1 = hashString(hash0,"Missouri")
- hash2 = hashString(hash1,"Western")
- hash3 = hashString(hash2, "State")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement