Skip to content
Snippets Groups Projects
Commit 64b7065a authored by Dominik Fuhrmann's avatar Dominik Fuhrmann
Browse files

bugfix

parent 10c29cec
No related merge requests found
...@@ -58,9 +58,10 @@ def handle_client(conn, addr): ...@@ -58,9 +58,10 @@ def handle_client(conn, addr):
data = json.loads(data) data = json.loads(data)
algorithm = data['algorithm'] algorithm = data['algorithm']
key_length = data['key_length'] key_length = data['key_length']
hex_key = key
key = bytes.fromhex(data['key']) key = bytes.fromhex(data['key'])
encrypted_message = data['message'] 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: except json.JSONDecodeError as e:
logging.error(f"Error decoding data: {e}") logging.error(f"Error decoding data: {e}")
conn.close() conn.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment