Files
zulip/zephyr/lib/avatar.py
Keegan McAllister 81f0d61c3b Factor out Gravatar hash calculation
(imported from commit 29872722fb4856773d98fc987a1e2d6eb99ad8b2)
2012-10-17 01:09:16 -04:00

6 lines
150 B
Python

import hashlib
def gravatar_hash(email):
"""Compute the Gravatar hash for an email address."""
return hashlib.md5(email.lower()).hexdigest()