| Paste number 8813: | DNS ID Thing |
| Pasted by: | sbp |
| When: | 6 years, 11 months ago |
| Share: | Tweet this! | http://paste.lisp.org/+6ST |
| Channel: | #swhack |
| Paste contents: |
>>> import sha
>>> from base64 import b32encode
>>> def dnsid(email):
... hash = sha.new(email).digest()
... return b32encode(hash[:10]).lower().rstrip('=\n')
...
>>> print dnsid('name@example.org')
et7jalakqf4zlg2o
>>>
This paste has no annotations.