MCPcopy
hub / github.com/django/django / must_update

Method must_update

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

Source from the content-addressed store, hash-verified

642 }
643
644 def must_update(self, encoded):
645 decoded = self.decode(encoded)
646 return (
647 decoded["work_factor"] != self.work_factor
648 or decoded["block_size"] != self.block_size
649 or decoded["parallelism"] != self.parallelism
650 )
651
652 def harden_runtime(self, password, encoded):
653 # The runtime for Scrypt is too complicated to implement a sensible

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.95

Tested by

no test coverage detected