mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
Factor out Gravatar hash calculation
(imported from commit 29872722fb4856773d98fc987a1e2d6eb99ad8b2)
This commit is contained in:
5
zephyr/lib/avatar.py
Normal file
5
zephyr/lib/avatar.py
Normal file
@@ -0,0 +1,5 @@
|
||||
import hashlib
|
||||
|
||||
def gravatar_hash(email):
|
||||
"""Compute the Gravatar hash for an email address."""
|
||||
return hashlib.md5(email.lower()).hexdigest()
|
||||
Reference in New Issue
Block a user