mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-28 13:11:15 +00:00
lighter md5 method to be nicer on older cpus
This commit is contained in:
1 parent
5a918d078e
commit
077661b73c
1 file changed
+2
-1
@@ -32,5 +32,6 @@ def create_hash(*args: str, decode=False, limit=10) -> str:
|
|||||||
str_ = unidecode(str_)
|
str_ = unidecode(str_)
|
||||||
|
|
||||||
str_ = str_.encode("utf-8")
|
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:]
|
return str_[-limit:]
|
||||||
Reference in new issue
Block a user