zulip/zephyr/lib/avatar.py

6 lines
150 B
Python
Raw Normal View History

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