Returns a heximal formated SHA1 hash of the input string.
(s)
| 147 | |
| 148 | |
| 149 | def hashhex(s): |
| 150 | """Returns a heximal formated SHA1 hash of the input string.""" |
| 151 | h = hashlib.sha1() |
| 152 | h.update(s.encode('utf-8')) |
| 153 | return h.hexdigest() |
| 154 | |
| 155 | |
| 156 | class BertData: |