Spaces:
Sleeping

cavs-api / app /core /security.py
Salahin's picture
add app
54efa62 verified
Raw History Blame Contribute Delete
175 Bytes
import hashlib
def hash_email(email: str) -> str:
"""Hash the email using SHA-256."""
return hashlib.sha256(email.encode()).hexdigest()
ALGORITHM = "HS256"