initial commit

This commit is contained in:
2025-06-29 18:17:04 +03:00
commit 6c731b04d3
11 changed files with 323 additions and 0 deletions

12
app/auth.py Normal file
View File

@ -0,0 +1,12 @@
from argon2 import PasswordHasher
ph = PasswordHasher()
def hash_password(password):
return ph.hash(password)
def verify(expected, given):
try:
return ph.verify(expected, given)
except:
return False