Переезд на md5
This commit is contained in:
@@ -18,7 +18,7 @@ VALID_PERM_CHARS = set("rwd")
|
||||
|
||||
|
||||
def hash_password(password: str) -> str:
|
||||
return hashlib.sha256(password.encode("ascii")).hexdigest()
|
||||
return hashlib.md5(password.encode("ascii"), usedforsecurity=False).hexdigest()
|
||||
|
||||
|
||||
def validate_password(password: str) -> str | None:
|
||||
|
||||
Reference in New Issue
Block a user