From 031b4d96170157f84299820786bc2056f6c3d8c4 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 29 Nov 2024 23:44:37 -0500 Subject: [PATCH] Use same number of iterations as original salted password --- lib/nntp/tiny/passwd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nntp/tiny/passwd.py b/lib/nntp/tiny/passwd.py index e71b4d3..d95e6c6 100644 --- a/lib/nntp/tiny/passwd.py +++ b/lib/nntp/tiny/passwd.py @@ -31,6 +31,6 @@ def compare(password: str, crypted: str) -> bool: if algorithm != ALGORITHM: return False - new_crypted = crypt(password, base64.b64decode(salt)) + new_crypted = crypt(password, base64.b64decode(salt), int(iterations)) return secrets.compare_digest(crypted, new_crypted)