Created
June 24, 2020 14:21
-
-
Save saumiko/3808d606bf128e2c7870c2257efde919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dicEncoder(d): | |
stringed = '' | |
for key, value in d.items(): | |
stringed += value | |
hash_object = hashlib.sha1(stringed.encode()) | |
hex_dig = hash_object.hexdigest() | |
return hex_dig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment