slight changes for the crypting process

This commit is contained in:
2026-07-12 12:36:45 +02:00
parent 9cee115c91
commit 43df6945cf
+8 -1
View File
@@ -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):