MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / createHash

Function createHash

packages/common/server/crypto.ts:62–66  ·  view source on GitHub ↗
(data: string, len: number)

Source from the content-addressed store, hash-verified

60}
61
62export function createHash(data: string, len: number) {
63 return cryptoCreateHash('shake256', { outputLength: len })
64 .update(data)
65 .digest('hex');
66}

Callers 5

generateDeviceIdFunction · 0.90
handleScriptProxyRouteFunction · 0.85
pickShardFunction · 0.85
authenticateTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected