(self, encoded)
| 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) |