diff --git a/communication/server.py b/communication/server.py
index 16210c2bea262edfaabedc18b32b58aeb4b79737..2bb6441b331bbf86bbc288b1a79896883f62d19d 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()