Spaces:
Runtime error
Runtime error
Download utils.py from mohit112233/vidstream-backend: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/spaces/mohit112233/vidstream-backend/resolve/main/utils.py
- Command line
-
hf download hf://spaces/mohit112233/vidstream-backend/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/mohit112233/vidstream-backend/resolve/main/utils.py
286 Bytes
| from passlib.context import CryptContext | |
| pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") | |
| def hash(password:str): | |
| return pwd_context.hash(password) | |
| def verify(plain_password:str, hashed_password:str): | |
| return pwd_context.verify(plain_password, hashed_password) |