diff --git a/Website/user.py b/Website/user.py index 777380d..109721c 100644 --- a/Website/user.py +++ b/Website/user.py @@ -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):