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

Function xor

extra/cloak/cloak.py:26–27  ·  view source on GitHub ↗
(message, key)

Source from the content-addressed store, hash-verified

24KEY = b"wr36EPIvaR7ZDfb4"
25
26def xor(message, key):
27 return b"".join(struct.pack('B', ord(message[i]) ^ ord(key[i % len(key)])) for i in range(len(message)))
28
29def cloak(inputFile=None, data=None):
30 if data is None:

Callers 2

cloakFunction · 0.85
decloakFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected