Download app/core/security.py from Salahin/cavs-api: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/spaces/Salahin/cavs-api/resolve/main/app/core/security.py
- Command line
-
hf download hf://spaces/Salahin/cavs-api/app/core/security.py
-
curl -L -o security.py https://huggingface.co/spaces/Salahin/cavs-api/resolve/main/app/core/security.py
175 Bytes
| import hashlib | |
| def hash_email(email: str) -> str: | |
| """Hash the email using SHA-256.""" | |
| return hashlib.sha256(email.encode()).hexdigest() | |
| ALGORITHM = "HS256" | |