cat_gateway::service::utilities::middleware::tracing_mw

Function anonymous_client_id

source
async fn anonymous_client_id(req: &Request) -> String
Expand description

Get an anonymized client ID from the request.

This simply takes the clients IP address, adds a supplied key to it, and hashes the result.

The Hash is unique per client IP, but not able to be reversed or analyzed without both the client IP and the key.