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

Method decode

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

Source from the content-addressed store, hash-verified

337 return "%s$%d$%s$%s" % (self.algorithm, iterations, salt, hash)
338
339 def decode(self, encoded):
340 algorithm, iterations, salt, hash = encoded.split("$", 3)
341 assert algorithm == self.algorithm
342 return {
343 "algorithm": algorithm,
344 "hash": hash,
345 "iterations": int(iterations),
346 "salt": salt,
347 }
348
349 def verify(self, password, encoded):
350 decoded = self.decode(encoded)

Callers 4

verifyMethod · 0.95
safe_summaryMethod · 0.95
must_updateMethod · 0.95
harden_runtimeMethod · 0.95

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected