MCPcopy
hub / github.com/django/django / harden_runtime

Method harden_runtime

django/contrib/auth/hashers.py:368–372  ·  view source on GitHub ↗
(self, password, encoded)

Source from the content-addressed store, hash-verified

366 return (decoded["iterations"] != self.iterations) or update_salt
367
368 def harden_runtime(self, password, encoded):
369 decoded = self.decode(encoded)
370 extra_iterations = self.iterations - decoded["iterations"]
371 if extra_iterations > 0:
372 self.encode(password, decoded["salt"], extra_iterations)
373
374
375class PBKDF2SHA1PasswordHasher(PBKDF2PasswordHasher):

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95
encodeMethod · 0.95

Tested by

no test coverage detected