MCPcopy
hub / github.com/django/django / safe_summary

Method safe_summary

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

Source from the content-addressed store, hash-verified

536 return constant_time_compare(encoded, encoded_2)
537
538 def safe_summary(self, encoded):
539 decoded = self.decode(encoded)
540 return {
541 _("algorithm"): decoded["algorithm"],
542 _("work factor"): decoded["work_factor"],
543 _("salt"): mask_hash(decoded["salt"]),
544 _("checksum"): mask_hash(decoded["checksum"]),
545 }
546
547 def must_update(self, encoded):
548 decoded = self.decode(encoded)

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95
mask_hashFunction · 0.85

Tested by

no test coverage detected