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

bugfix

parent 10c29cec
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
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