[Sync] Image::new updated. + md5

This commit is contained in:
Roman Timashev committed 2017-09-15 12:19:37 +03:00
1 parent e54c448704
commit a8ba0a60eb
2 files changed
+14 -1

No files matched your search

+5
View File
@@ -26,3 +26,8 @@ def hash_str(data):
data = to_json(data)
return hash_data(str(data).encode())
def md5(data: str) -> str:
i = hashlib.md5(data.encode('utf-8'))
return i.hexdigest()