Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib
- import json
- data_json = json.dumps(data_dict, ensure_ascii=False, sort_keys = True)
- m.update(str(data_json).encode('utf-8'))
- hashed = m.hexdigest()
- print(hashed)
- instance.id = hashed
Add Comment
Please, Sign In to add comment