slight changes for the crypting process
This commit is contained in:
+8
-1
@@ -39,7 +39,14 @@ def hashing(password):
|
||||
Returns:
|
||||
str: Hexadecimal digest of the hashed password
|
||||
"""
|
||||
return hashlib.scrypt(password.encode(), salt=b'salt_1234567890').hexdigest()
|
||||
return hashlib.scrypt(
|
||||
password.encode(),
|
||||
salt=b'salt_1234567890',
|
||||
n=16384,
|
||||
r=8,
|
||||
p=1,
|
||||
dklen=64,
|
||||
).hex()
|
||||
|
||||
|
||||
def check_nm_pwd(username, password):
|
||||
|
||||
Reference in New Issue
Block a user