1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #35428 -- Increased parallelism of the ScryptPasswordHasher.

This commit is contained in:
SaJH
2024-05-12 03:32:57 +09:00
committed by Sarah Boyce
parent 50852b2c2c
commit 8f205acea9
3 changed files with 6 additions and 3 deletions

View File

@@ -650,8 +650,8 @@ class TestUtilsHashPassScrypt(SimpleTestCase):
encoded = make_password("lètmein", "seasalt", "scrypt")
self.assertEqual(
encoded,
"scrypt$16384$seasalt$8$1$Qj3+9PPyRjSJIebHnG81TMjsqtaIGxNQG/aEB/NY"
"afTJ7tibgfYz71m0ldQESkXFRkdVCBhhY8mx7rQwite/Pw==",
"scrypt$16384$seasalt$8$5$ECMIUp+LMxMSK8xB/IVyba+KYGTI7FTnet025q/1f"
"/vBAVnnP3hdYqJuRi+mJn6ji6ze3Fbb7JEFPKGpuEf5vw==",
)
self.assertIs(is_password_usable(encoded), True)
self.assertIs(check_password("lètmein", encoded), True)