import hashlib def make_fan_id(email: str) -> str: m = hashlib.sha256() m.update(email.strip().lower().encode()) return m.hexdigest()