diff --git a/client/netwrapper.py b/client/netwrapper.py index c3bb39a..4e19384 100644 --- a/client/netwrapper.py +++ b/client/netwrapper.py @@ -84,7 +84,7 @@ class NetWrapper: header, headersignature = self.signRSAHeader("DH",{}) jsonmsg = json.dumps( {'header': b64encode(header).decode('UTF-8'), 'headersignature': b64encode(headersignature).decode('UTF-8'), - 'message': mypubkey}).encode('UTF-8') + 'message': b64encode(mypubkey).decode('UTF-8')}).encode('UTF-8') self.network.send_msg(self.serverAddr, jsonmsg) decodedmsg, header = self.recieveAndUnpackRSAMessage() if not self.verifyRSAHeaderSignature(b64decode(decodedmsg['header']),