Skip to main content

token_digest

Function token_digest 

Source
pub fn token_digest(token: &str) -> String
Expand description

Random high-entropy tokens (sessions, api keys) are stored as a plain digest, a KDF buys nothing against a 256-bit preimage and the deterministic value makes the unique index a real lookup.