mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-28 13:11:15 +00:00
opted for sha1
This commit is contained in:
1 parent
077661b73c
commit
f0a8aa02a9
1 file changed
+2
-2
@@ -32,6 +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.md5(str_).hexdigest()
|
str_ = hashlib.sha1(str_).hexdigest()
|
||||||
# REVIEW Switched to md5 hashlib.sha256(str_).hexdigest()
|
# REVIEW Switched to sha1 hashlib.sha256(str_).hexdigest()
|
||||||
return str_[-limit:]
|
return str_[-limit:]
|
||||||
Reference in new issue
Block a user