From 64b7065afcc0c76254447ed4ecc7670d343321a3 Mon Sep 17 00:00:00 2001
From: Dominik Fuhrmann <dominik.fuhrmann1@gmail.com>
Date: Fri, 27 Dec 2024 12:48:43 +0100
Subject: [PATCH] bugfix

---
 communication/server.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/communication/server.py b/communication/server.py
index 16210c2..2bb6441 100644
--- a/communication/server.py
+++ b/communication/server.py
@@ -58,9 +58,10 @@ def handle_client(conn, addr):
         data = json.loads(data)
         algorithm = data['algorithm']
         key_length = data['key_length']
+        hex_key = key
         key = bytes.fromhex(data['key'])
         encrypted_message = data['message']
-        logging.info(f"Algorithm: {algorithm}, Key Length: {key_length}, key: {key}")
+        logging.info(f"Algorithm: {algorithm}, Key Length: {key_length}, key: {hex_key}")
     except json.JSONDecodeError as e:
         logging.error(f"Error decoding data: {e}")
         conn.close()
-- 
GitLab