Return a string hex digest for this hash.
(self)
| 82 | return self.binh.digest()[: self.digest_size] |
| 83 | |
| 84 | def hexdigest(self): |
| 85 | """ |
| 86 | Return a string hex digest for this hash. |
| 87 | """ |
| 88 | return self.msg_len and binascii.hexlify(self.digest()).decode("utf-8") |
| 89 | |
| 90 | def b64digest(self): |
| 91 | """ |