Spaces:
Runtime error
Runtime error
Download app/core/__init__.py from junaidte14/aiverse: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/junaidte14/aiverse/resolve/main/app/core/__init__.py
- Command line
-
hf download hf://spaces/junaidte14/aiverse/app/core/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/junaidte14/aiverse/resolve/main/app/core/__init__.py
413 Bytes
| from pwdlib import PasswordHash | |
| # Initialize the modern handler | |
| password_hash = PasswordHash.recommended() | |
| def hash_password(password: str) -> str: | |
| """Hash a password for storage.""" | |
| return password_hash.hash(password) | |
| def verify_password(plain_password: str, hashed_password: str) -> bool: | |
| """Verify a password against a hash.""" | |
| return password_hash.verify(plain_password, hashed_password) | |