Spaces:
Runtime error
Runtime error
Download utils/auth_utils.py from cloudaiRambo/cloudairambo: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/spaces/cloudaiRambo/cloudairambo/resolve/main/utils/auth_utils.py
- Command line
-
hf download hf://spaces/cloudaiRambo/cloudairambo/utils/auth_utils.py
-
curl -L -o auth_utils.py https://huggingface.co/spaces/cloudaiRambo/cloudairambo/resolve/main/utils/auth_utils.py
245 Bytes
| # utils/auth_utils.py | |
| from passlib.hash import bcrypt | |
| def hash_password(password: str) -> str: | |
| return bcrypt.hash(password) | |
| def verify_password(password: str, password_hash: str) -> bool: | |
| return bcrypt.verify(password, password_hash) | |