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

Function hashFileContent

source code/utils/fileOperationAnalytics.ts:24–30  ·  view source on GitHub ↗

* Creates a full SHA256 hash (64 chars) for file contents * Used for deduplication and change detection analytics

(
  content: string,
)

Source from the content-addressed store, hash-verified

22 * Used for deduplication and change detection analytics
23 */
24function hashFileContent(
25 content: string,
26): AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS {
27 return createHash('sha256')
28 .update(content)
29 .digest('hex') as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
30}
31
32// Maximum content size to hash (100KB)
33// Prevents memory exhaustion when hashing large files (e.g., base64-encoded images)

Callers 1

logFileOperationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected