|
|
@@ -14,7 +14,6 @@ import config
|
|
|
def hash_pw(password, salt=None):
|
|
|
if salt is None:
|
|
|
salt = os.urandom(16)
|
|
|
- h = hmac.new(salt, password.encode('utf-8'), hashlib.sha256)
|
|
|
hashed = hashlib.pbkdf2_hmac('sha512', password.encode('utf-8'), salt, 100000)
|
|
|
hashed_hex = binascii.hexlify(hashed).decode()
|
|
|
salt_hex = binascii.hexlify(salt).decode()
|