MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / token_hash

Function token_hash

mserver/MasterService/src/service.rs:397–399  ·  view source on GitHub ↗

SHA-256 hex of a server token (what the DB stores; never the token itself).

(token: &str)

Source from the content-addressed store, hash-verified

395 .split(|ch: char| ch == ',' || ch == ';' || ch == '|' || ch.is_whitespace())
396 .map(str::trim)
397 .filter(|mod_id| !mod_id.is_empty())
398 {
399 if !mod_ids.iter().any(|existing| existing == mod_id) {
400 mod_ids.push(mod_id.to_string());
401 }
402 }

Callers 1

issue_tokenFunction · 0.85

Calls 1

to_hexFunction · 0.85

Tested by

no test coverage detected