Skip to main content

verify_api_key

Function verify_api_key 

Source
pub fn verify_api_key(key: &str, hash: &str) -> bool
Expand description

Verifies an API key against an Argon2id hash.

Returns true if the key matches the hash, false otherwise. This operation is constant-time to prevent timing attacks.