MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / sha256

Function sha256

apps/kimi-code/src/native/web-assets.ts:61–63  ·  view source on GitHub ↗
(bytes: Buffer | Uint8Array | string)

Source from the content-addressed store, hash-verified

59}
60
61function sha256(bytes: Buffer | Uint8Array | string): string {
62 return createHash('sha256').update(bytes).digest('hex');
63}
64
65function sanitizeSegment(value: string): string {
66 const sanitized = value.replaceAll(/[^a-zA-Z0-9._-]/g, '_');

Callers 3

readFileSha256Function · 0.70
getWebAssetCacheRootFunction · 0.70
getNativeWebAssetsDirFunction · 0.70

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected