Advertisement
Luninariel

NonceCalc

Sep 28th, 2020
1,115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. import hashlib
  2.  
  3. def hash(value):
  4.   m = hashlib.sha256()
  5.   m.update(value.encode())
  6.   return m.hexdigest()
  7.  
  8. def hashString(oldHash,newValue):
  9.   i=0
  10.   while True:
  11.     s = hash(str(i)+"::"+oldHash+"::"+newValue)
  12.     if s[:4] == "0000":
  13.       print(i)
  14.       print(s)
  15.       return s
  16.     i += 1
  17.    
  18.    
  19. hash0 = "00004257eca8a841343564e90f7a19289fa604f9db307a709136c78fd580f540b196"
  20. hash1 = hashString(hash0,"Missouri")
  21. hash2 = hashString(hash1,"Western")
  22. hash3 = hashString(hash2, "State")
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement