Pinned Loading
-
Simple xor function for python
Simple xor function for python 1from itertools import cycle
23def xor(key: bytes, data: bytes) -> bytes:
4return bytes(a ^ b for a, b in zip(data, cycle(key)))
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.