From f8b947690b8f7638206677134d801728210b8f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Mon, 26 Apr 2021 13:37:56 +0200 Subject: [PATCH] fucking god may fuck this code --- client/netwrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/netwrapper.py b/client/netwrapper.py index 5f2ac31..4d8222d 100644 --- a/client/netwrapper.py +++ b/client/netwrapper.py @@ -82,7 +82,7 @@ class NetWrapper: try: retnonce = b64decode(b64['nonce']) retciphertext = b64decode(b64['message']) - retcipher = ChaCha20.new(self.cipherkey, nonce=retnonce) + retcipher = ChaCha20.new(key=self.cipherkey, nonce=retnonce) plaintext = retcipher.decrypt(retciphertext).decode('UTF-8') if plaintext != "OK": raise Exception('Authentication error')