cheating-detection-FYP / generate_keys.py
Ibtehaj10's picture
Upload 49 files
0ba3ad4
raw
history blame contribute delete
No virus
373 Bytes
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)