pub fn digest(token: &str) -> StringExpand description
SHA-256 of token as 64 lowercase hex characters: the value to store and look up.
Query by it (WHERE digest = ?1), so the database never holds the token
itself. Deterministic: the same token always gives the same digest.
ยงExamples
assert_eq!(ocre::token::digest("abc"), "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad");