Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.62 KB | None | 0 0
  1. import uuid
  2. import hashlib
  3.  
  4. def nonce_generate():
  5.     nonss = str(uuid.uuid4().hex)
  6.     return nonss
  7.  
  8. def praegune_kokku():
  9.     eelmine = "cdac1f5a6b2d5fcd32bf9287702446dc0637644860809f1fa294e00eed00a254" #eelmine hash
  10.     nonce = nonce_generate()
  11.     print(nonce)
  12.     praegune = "507cfa36f735b365f73c3c4facb2af8450dcb818f4e0c7ca22f20eab32997eca"  #logo hash
  13.     combined_hashes = eelmine + praegune + nonce
  14.     print(combined_hashes)
  15.     combined_hashes = hashlib.sha256(eelmine.encode() + praegune.encode() + nonce.encode()).hexdigest()
  16.     return combined_hashes
  17.  
  18. if __name__ == '__main__':
  19.     print(praegune_kokku())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement