MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / calc_hash

Function calc_hash

thirdparty/identywaf/identYwaf.py:185–190  ·  view source on GitHub ↗
(value, binary=True)

Source from the content-addressed store, hash-verified

183 return retval
184
185def calc_hash(value, binary=True):
186 value = value.encode("utf8") if not isinstance(value, bytes) else value
187 result = zlib.crc32(value) & 0xffff
188 if binary:
189 result = struct.pack(">H", result)
190 return result
191
192def single_print(message):
193 if message not in seen:

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…