Skip to main content

compute_kid

Function compute_kid 

Source
pub fn compute_kid(verifying_key_bytes: &[u8]) -> String
Expand description

Compute the kid for a cookie signing key (first 4 bytes of SHA-256 → 8 hex chars).

8 ASCII hex characters fit the cookie format’s kid[8] field exactly.