From 772a9e6d2c4280f9a8aa33793517e41acc9b26a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Mon, 26 Apr 2021 00:26:23 +0200 Subject: [PATCH] encode --- server/netwrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/netwrapper.py b/server/netwrapper.py index 529f864..732d03b 100644 --- a/server/netwrapper.py +++ b/server/netwrapper.py @@ -66,7 +66,7 @@ class NetWrapper: cipherkey = dh.gen_shared_key(serverpubkey).encode('UTF-8') hasher = SHA512.new() hasher.update(cipherkey) - self.cipherkey = hasher.hexdigest()[:32] + self.cipherkey = (hasher.hexdigest()[:32]).encode('UTF-8') def login(self) -> bool: b64 = {'source': '', 'type': ''}