MCPcopy
hub / github.com/django/django / decode

Method decode

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

Source from the content-addressed store, hash-verified

670 return "%s$%s$%s" % (self.algorithm, salt, hash)
671
672 def decode(self, encoded):
673 algorithm, salt, hash = encoded.split("$", 2)
674 assert algorithm == self.algorithm
675 return {
676 "algorithm": algorithm,
677 "hash": hash,
678 "salt": salt,
679 }
680
681 def verify(self, password, encoded):
682 decoded = self.decode(encoded)

Callers 15

verifyMethod · 0.95
safe_summaryMethod · 0.95
must_updateMethod · 0.95
encodeMethod · 0.45
encodeMethod · 0.45
decodeMethod · 0.45
encodeMethod · 0.45
encodeMethod · 0.45
get_userMethod · 0.45
get_default_usernameFunction · 0.45
quote_lexemeFunction · 0.45
metadataMethod · 0.45

Calls 1

splitMethod · 0.45