import hashlib def hash_email(email: str) -> bytes: return hashlib.sha256(email.encode()).digest()