Spaces:
Runtime error
Runtime error
File size: 373 Bytes
0ba3ad4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import pickle
from pathlib import Path
import streamlit_authenticator as stauth
# print("Done !!!")
names = ["dmin", "ser"]
username =["admin", "user"]
password =["admin123", "user123"]
hashed_passwords =stauth.Hasher(password).generate()
file_path = Path(__file__).parent / "hashed_pw.pkl"
with file_path.open("wb") as file:
pickle.dump(hashed_passwords, file)
|