#NEWLINE# def HashEmails( emails ) : #NEWLINE# #INDENT# 'Hashes the given emails using SHA-256.\n\n  Note: Emails are stripped of any whitespace and set to lowercase before\n  hashing.\n\n  Args:\n    emails: list of str emails to be hashed.\n\n  Returns:\n    A list of SHA-256 hashed emails.\n  ' #NEWLINE# return [ hashlib . sha256 ( email . strip ( ) . lower ( ) ) . hexdigest ( ) for email in email ]