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

Method verify

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

Source from the content-addressed store, hash-verified

530 }
531
532 def verify(self, password, encoded):
533 algorithm, data = encoded.split("$", 1)
534 assert algorithm == self.algorithm
535 encoded_2 = self.encode(password, data.encode("ascii"))
536 return constant_time_compare(encoded, encoded_2)
537
538 def safe_summary(self, encoded):
539 decoded = self.decode(encoded)

Callers

nothing calls this directly

Calls 4

encodeMethod · 0.95
constant_time_compareFunction · 0.90
splitMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected