hash the pass #13

Open
berkutayme wants to merge 3 commits from berkutayme/2024-heraklion-git_berk:hashpass into main
Showing only changes of commit 86f25aca46 - Show all commits

View file

@ -25,12 +25,6 @@ def read_pwdb(PWDB_PATH):
pwdb = {} pwdb = {}
return pwdb return pwdb
# def get_salt(username):
# ''' will return a unique variable'''
# salt =
# return salt
def pwhash(password): def pwhash(password):
hashed_pass = hashlib.sha256(password.encode('utf-8')).hexdigest() hashed_pass = hashlib.sha256(password.encode('utf-8')).hexdigest()