yasuki_core.accounts.crypto.email_blind_index#

email_blind_index(email)[source]#

Return the blind index stored for an email: HMAC-SHA256(normalized email, pepper).

The email is lower-cased and stripped before hashing, so equality lookups (dup-account detection, ban-by-email) match regardless of the casing Google hands back. Raise RuntimeError when the pepper is unset.

Parameters:
emailstr

The address to index.

Returns:
indexbytes

The 32-byte HMAC-SHA256 digest.