Skip to main content

session_key

Function session_key 

Source
pub fn session_key(agent: &str, dir: &str, name: &str) -> String
Expand description

Compute a deterministic session key from agent, directory, and optional name.

Uses SHA-256 of "agent\0dir\0name" (hex encoded). The null byte separator prevents collisions between e.g. ("a","b\0c","") and ("a\0b","c","").