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

Method verify

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

Source from the content-addressed store, hash-verified

347 }
348
349 def verify(self, password, encoded):
350 decoded = self.decode(encoded)
351 encoded_2 = self.encode(password, decoded["salt"], decoded["iterations"])
352 return constant_time_compare(encoded, encoded_2)
353
354 def safe_summary(self, encoded):
355 decoded = self.decode(encoded)

Callers 1

test_low_level_pbkdf2Method · 0.95

Calls 3

decodeMethod · 0.95
encodeMethod · 0.95
constant_time_compareFunction · 0.90

Tested by 1

test_low_level_pbkdf2Method · 0.76