MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / token_fingerprint

Function token_fingerprint

crates/openshell-supervisor-process/src/debug_rpc.rs:181–184  ·  view source on GitHub ↗
(token: &str)

Source from the content-addressed store, hash-verified

179}
180
181fn token_fingerprint(token: &str) -> String {
182 let digest = Sha256::digest(token.as_bytes());
183 format!("sha256:{}", &hex::encode(digest)[..16])
184}
185
186/// Read the token from the env/file/SA-bootstrap chain, but only the
187/// "already a gateway JWT" paths — show-token / show-principal don't

Callers 1

print_token_summaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected