Last active
October 10, 2024 16:42
-
-
Save Rurik/35a185b09149fe9b4e51312f731c0783 to your computer and use it in GitHub Desktop.
multibyte_xor - Python3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def multibyte_xor(data, key): # Python 3 | |
from itertools import cycle | |
return ''.join(chr(x ^ y) for x, y in zip(data, cycle(key))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment