Переезд на md5

This commit is contained in:
2026-04-04 11:25:35 +03:00
parent 7c83fe5e1a
commit d3a40d4ef7
11 changed files with 44 additions and 40 deletions

View File

@@ -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: