AI-Docwhiz / generate_keys.py
sourabhzanwar's picture
authentication update
dc07ef2
raw
history blame
311 Bytes
# -*- coding: utf-8 -*-
import pickle
from pathlib import Path
import streamlit_authenticator as stauth
names = ['admin']
usernames = ['admin']
passwords = ['xxxxxxxx']
hashed_passwords = stauth.Hasher((passwords)).generate()
with open('hashed_password.pkl','wb') as f:
pickle.dump(hashed_passwords, f)