Blasta/blasta/utilities/cryptography.py
Schimon Jehudah, Adv. 24dbadf7dc Fix various of errors, consequent to the restructuring of the code;
Add missing dependencies and files;
Thank you to LeXofLeviafan and roughnecks.
2024-11-17 14:00:31 +02:00

12 lines
270 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
import hashlib
class UtilitiesCryptography:
def hash_url_to_md5(url):
url_encoded = url.encode()
url_hashed = hashlib.md5(url_encoded)
url_digest = url_hashed.hexdigest()
return url_digest