Skip to main content

verify_api_key_hash

Function verify_api_key_hash 

Source
pub fn verify_api_key_hash(raw_key: &str, stored_hash: &str) -> bool
Expand description

Constant-time comparison of a raw key against a stored hash.

Prevents timing attacks by using subtle::ConstantTimeEq.