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

Method verify

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

Source from the content-addressed store, hash-verified

679 }
680
681 def verify(self, password, encoded):
682 decoded = self.decode(encoded)
683 encoded_2 = self.encode(password, decoded["salt"])
684 return constant_time_compare(encoded, encoded_2)
685
686 def safe_summary(self, encoded):
687 decoded = self.decode(encoded)

Callers 7

verify_passwordFunction · 0.45
verifyMethod · 0.45
to_pythonMethod · 0.45
test_verifyMethod · 0.45

Calls 3

decodeMethod · 0.95
encodeMethod · 0.95
constant_time_compareFunction · 0.90