From 8a4174c6e72db018aa2afd1f50e442c4b16062e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Mon, 26 Apr 2021 00:26:53 +0200 Subject: [PATCH] bytes --- client/netwrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/netwrapper.py b/client/netwrapper.py index 77dd3d2..cc29f66 100644 --- a/client/netwrapper.py +++ b/client/netwrapper.py @@ -62,7 +62,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 authenticate(self, password: str): message = f"LIN {self.username} {password}".encode('UTF-8')