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

Method safe_summary

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

Source from the content-addressed store, hash-verified

684 return constant_time_compare(encoded, encoded_2)
685
686 def safe_summary(self, encoded):
687 decoded = self.decode(encoded)
688 return {
689 _("algorithm"): decoded["algorithm"],
690 _("salt"): mask_hash(decoded["salt"], show=2),
691 _("hash"): mask_hash(decoded["hash"]),
692 }
693
694 def must_update(self, encoded):
695 decoded = self.decode(encoded)

Callers 5

render_password_as_hashFunction · 0.45
test_bcrypt_upgradeMethod · 0.45
test_safe_summaryMethod · 0.45
_test_argon2_upgradeMethod · 0.45
_test_scrypt_upgradeMethod · 0.45

Calls 2

decodeMethod · 0.95
mask_hashFunction · 0.85

Tested by 4

test_bcrypt_upgradeMethod · 0.36
test_safe_summaryMethod · 0.36
_test_argon2_upgradeMethod · 0.36
_test_scrypt_upgradeMethod · 0.36