MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / toHex

Function toHex

graph-ui/src/core/hash.ts:32–38  ·  view source on GitHub ↗
(words: Uint32Array)

Source from the content-addressed store, hash-verified

30const encoder = new TextEncoder();
31
32function toHex(words: Uint32Array): string {
33 let out = '';
34 for (const word of words) {
35 out += (word >>> 0).toString(16).padStart(8, '0');
36 }
37 return out;
38}
39
40/**
41 * Anhaengen der Laenge nach der Merkle-Damgard-Vorschrift, die sha1 und sha256

Callers 2

sha1BytesFunction · 0.85
sha256BytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected