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

Function simpleHash

source code/utils/sessionStoragePortable.ts:297–299  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

295export const MAX_SANITIZED_LENGTH = 200
296
297function simpleHash(str: string): string {
298 return Math.abs(djb2Hash(str)).toString(36)
299}
300
301/**
302 * Makes a string safe for use as a directory or file name.

Callers 1

sanitizePathFunction · 0.85

Calls 2

djb2HashFunction · 0.85
toStringMethod · 0.65

Tested by

no test coverage detected