Table of Contents

Interface IHMACSHA256Hasher

Namespace
SEBT.Portal.StatesPlugins.Interfaces.Services
Assembly
SEBT.Portal.StatesPlugins.Interfaces.dll

Domain-agnostic HMAC-SHA256 hasher. Implementations use a configured secret key to produce deterministic hashes suitable for cache keys, lookup tokens, and other consistent-hash use cases. Input is hashed as UTF-8 bytes; the output is a lowercase hexadecimal string of the 32-byte HMAC.

public interface IHMACSHA256Hasher

Methods

Hash(string)

Computes HMAC-SHA256 over the UTF-8 bytes of input using the implementation's configured secret key. Returns the result as a 64-character lowercase hexadecimal string. Throws if input is null.

string Hash(string input)

Parameters

input string

Returns

string