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