Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import hashlib
  2. import json
  3. #Define the Function
  4. def hash_twice(input_dictionary):
  5. block_string = json.dumps(input_dictionary).encode()
  6. return hashlib.sha256(hashlib.sha256(block_string).hexdigest().encode()).hexdigest()
  7.  
  8. message="dappsuni"
  9. #Call the Function
  10. output=hash_twice(message)
  11.  
  12. print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement