MCPcopy
hub / github.com/django/django / verify

Method verify

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

Source from the content-addressed store, hash-verified

620 }
621
622 def verify(self, password, encoded):
623 decoded = self.decode(encoded)
624 encoded_2 = self.encode(
625 password,
626 decoded["salt"],
627 decoded["work_factor"],
628 decoded["block_size"],
629 decoded["parallelism"],
630 )
631 return constant_time_compare(encoded, encoded_2)
632
633 def safe_summary(self, encoded):
634 decoded = self.decode(encoded)

Callers

nothing calls this directly

Calls 3

decodeMethod · 0.95
encodeMethod · 0.95
constant_time_compareFunction · 0.90

Tested by

no test coverage detected