This commit is contained in:
Miroslav Stampar
2020-08-31 22:06:22 +02:00
parent ea5ae44b6c
commit 226d467f6d
47 changed files with 10 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ if sys.version_info >= (3, 0):
xrange = range
ord = lambda _: _
KEY = b"LGekORm7qYCsv39f"
KEY = b"MOZFqVjlk1CY436G"
def xor(message, key):
return b"".join(struct.pack('B', ord(message[i]) ^ ord(key[i % len(key)])) for i in range(len(message)))