MCPcopy
hub / github.com/swisskyrepo/PayloadsAllTheThings / encrypt

Function encrypt

CVE Exploits/Telerik CVE-2017-9248.py:76–82  ·  view source on GitHub ↗
(dpdata, key)

Source from the content-addressed store, hash-verified

74
75
76def encrypt(dpdata, key):
77 encrypted = []
78 k = 0
79 for i in range(len(dpdata)):
80 encrypted.append(chr(ord(dpdata[i]) ^ ord(key[k])))
81 k = 0 if k >= len(key) - 1 else k + 1
82 return ''.join(str(e) for e in encrypted)
83
84
85def mode_decrypt():

Callers 4

get_resultFunction · 0.85
mode_decryptFunction · 0.85
mode_encryptFunction · 0.85
mode_brutekeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected