Same as hash_buffer, but returns its result in hex-encoded form.
(buf, hasher=None)
| 92 | |
| 93 | |
| 94 | def hash_buffer_hex(buf, hasher=None): |
| 95 | """ |
| 96 | Same as hash_buffer, but returns its result in hex-encoded form. |
| 97 | """ |
| 98 | h = hash_buffer(buf, hasher) |
| 99 | s = binascii.b2a_hex(h) |
| 100 | return s.decode() |
searching dependent graphs…