diff --git a/client.py b/client.py index 190e6ad..aad9a26 100755 --- a/client.py +++ b/client.py @@ -13,7 +13,7 @@ s.connect((host, port)) print("Connected to", s.getpeername()) -s.send(b"p " + base64.b64encode(backend.keyToJson(key).encode()) + b"\n") +s.send(b"p " + backend.keyToBase64(key) + b"\n") while True: text = input("Votre message: ")