lighter md5 method to be nicer on older cpus

This commit is contained in:
thecookingsenpai 2024-02-01 20:24:42 +01:00
parent 5a918d078e
commit 077661b73c

View File

@ -32,5 +32,6 @@ def create_hash(*args: str, decode=False, limit=10) -> str:
str_ = unidecode(str_)
str_ = str_.encode("utf-8")
str_ = hashlib.sha256(str_).hexdigest()
str_ = hashlib.md5(str_).hexdigest()
# REVIEW Switched to md5 hashlib.sha256(str_).hexdigest()
return str_[-limit:]