pub fn hash_token(raw: &str) -> StringExpand description
Hash a raw Bearer token to the form stored in the registry. The token is a
256-bit random secret (see super::pairing::generate_device_token); a plain
SHA-256 is sufficient for a high-entropy secret (no need for a slow KDF, which
only matters for low-entropy passwords).