Skip to main content

hash_rate_limit_scope

Function hash_rate_limit_scope 

Source
pub fn hash_rate_limit_scope(
    secret: &str,
    scope: &str,
) -> Result<String, RustAuthError>
Expand description

Derive a stable, non-reversible rate-limit scope identifier.

Uses HMAC-SHA256(secret, scope) hex-encoded so storage keys never contain raw challenge tokens or other client-controlled secrets.