Spaces:
Runtime error
Runtime error
Download app/utils.py from abdullah090809/FastAPI-Project: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/spaces/abdullah090809/FastAPI-Project/resolve/bb4b25f33972753e5ff545649133e43bf2aeb752/app/utils.py
- Command line
-
hf download hf://spaces/abdullah090809/FastAPI-Project@bb4b25f33972753e5ff545649133e43bf2aeb752/app/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/abdullah090809/FastAPI-Project/resolve/bb4b25f33972753e5ff545649133e43bf2aeb752/app/utils.py
294 Bytes
| from passlib.context import CryptContext # type: ignore | |
| pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") | |
| def Hash(password: str): | |
| return pwd_context.hash(password) | |
| def verify(plain_password,hashed_password): | |
| return pwd_context.verify(plain_password,hashed_password) | |