mirror of
https://github.com/django/django.git
synced 2025-11-23 12:26:57 +00:00
Fixed #35428 -- Increased parallelism of the ScryptPasswordHasher.
This commit is contained in:
parent
50852b2c2c
commit
8f205acea9
3 changed files with 6 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue