Dieser Commit ist enthalten in:
2025-06-28 18:32:30 +02:00
Ursprung f1050398cf
Commit b28b60e47b
1596 geänderte Dateien mit 0 neuen und 122678 gelöschten Zeilen

Datei anzeigen

@@ -1,11 +0,0 @@
import bcrypt
def hash_password(password):
"""Hash a password using bcrypt"""
return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()).decode('utf-8')
def verify_password(password, hashed):
"""Verify a password against its hash"""
return bcrypt.checkpw(password.encode('utf-8'), hashed.encode('utf-8'))