MCPcopy Index your code
hub / github.com/coder/mux / hashKey

Function hashKey

src/node/runtime/sshConnectionPool.ts:662–664  ·  view source on GitHub ↗

* Generate deterministic hash for controlPath naming. * Uses first 12 chars of SHA-256 for human-readable uniqueness.

(key: string)

Source from the content-addressed store, hash-verified

660 * Uses first 12 chars of SHA-256 for human-readable uniqueness.
661 */
662function hashKey(key: string): string {
663 return crypto.createHash("sha256").update(key).digest("hex").substring(0, 12);
664}

Callers 1

getControlPathFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected