MCPcopy Create free account
hub / github.com/GPTScan/GPTScan / hashString

Function hashString

src/antlr4helper/utils.py:8–9  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

6
7# calculate hash
8def hashString(content):
9 return hashlib.md5(content.encode('utf-8')).hexdigest()
10
11def hashFile(file_path):
12 f = open(file_path, 'r', encoding='utf-8')

Callers 1

hashFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected