hash the pass #13
6
auth.py
6
auth.py
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue