Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
def
hashString(content):
9
return
hashlib.md5(content.encode(
'utf-8'
)).hexdigest()
10
11
def
hashFile(file_path):
12
f = open(file_path,
'r'
, encoding=
'utf-8'
)
Callers
1
hashFile
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected