Spaces:
Running
Running
import bcrypt | |
def hash_password(password: str) -> str: | |
hashed = bcrypt.hashpw(password.encode(), bcrypt.gensalt()) | |
return hashed.decode() | |
new_password = "" | |
hashed_password = hash_password(new_password) | |
print(f"Hashed Password: {hashed_password}") | |