Table of Contents

Interface IEmailLookupHasher

Namespace
SEBT.Portal.Core.Services
Assembly
SEBT.Portal.Core.dll

Computes a deterministic 64-character hex MAC for normalized email lookups (equality in SQL via persisted email-hash column). Separate from identifier hashing normalization rules used for SNAP/TANF/SSN.

public interface IEmailLookupHasher

Methods

HashNormalized(string?)

Returns null when email is null/whitespace; otherwise trims + lowercases then MACs UTF-8.

string? HashNormalized(string? normalizedLowercaseTrimmedEmail)

Parameters

normalizedLowercaseTrimmedEmail string

Returns

string

NormalizeAndHash(string?)

Returns null when email is null/whitespace or cannot be normalized; otherwise returns the same MAC as HashNormalized(string?) for that normalized address.

string? NormalizeAndHash(string? email)

Parameters

email string

Returns

string