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

Method safe_summary

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

Source from the content-addressed store, hash-verified

631 return constant_time_compare(encoded, encoded_2)
632
633 def safe_summary(self, encoded):
634 decoded = self.decode(encoded)
635 return {
636 _("algorithm"): decoded["algorithm"],
637 _("work factor"): decoded["work_factor"],
638 _("block size"): decoded["block_size"],
639 _("parallelism"): decoded["parallelism"],
640 _("salt"): mask_hash(decoded["salt"]),
641 _("hash"): mask_hash(decoded["hash"]),
642 }
643
644 def must_update(self, encoded):
645 decoded = self.decode(encoded)

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95
mask_hashFunction · 0.85

Tested by

no test coverage detected