MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / hashKey

Method hashKey

lib/utils/hashdb.py:83–86  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

81
82 @staticmethod
83 def hashKey(key):
84 key = getBytes(key if isinstance(key, six.text_type) else repr(key), errors="xmlcharrefreplace")
85 retVal = struct.unpack("<Q", hashlib.md5(key).digest()[:8])[0] & 0x7fffffffffffffff
86 return retVal
87
88 def retrieve(self, key, unserialize=False):
89 retVal = None

Callers 2

retrieveMethod · 0.80
writeMethod · 0.80

Calls 1

getBytesFunction · 0.90

Tested by

no test coverage detected