MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / hashPastedText

Function hashPastedText

source code/utils/pasteStore.ts:23–25  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

21 * Exported so callers can get the hash synchronously before async storage.
22 */
23export function hashPastedText(content: string): string {
24 return createHash('sha256').update(content).digest('hex').slice(0, 16)
25}
26
27/**
28 * Get the file path for a paste by its content hash.

Callers 1

addToPromptHistoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected