Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib
- import json
- #Define the Function
- def hash_twice(input_dictionary):
- block_string = json.dumps(input_dictionary).encode()
- return hashlib.sha256(hashlib.sha256(block_string).hexdigest().encode()).hexdigest()
- message="dappsuni"
- #Call the Function
- output=hash_twice(message)
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement