From 62dd8872d654ce18ba50de61d204373a692503cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Mon, 26 Apr 2021 22:23:20 +0200 Subject: [PATCH] hatvannegyedik bazis --- server/netwrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/netwrapper.py b/server/netwrapper.py index 43bbb98..1fc6329 100644 --- a/server/netwrapper.py +++ b/server/netwrapper.py @@ -66,7 +66,7 @@ class NetWrapper: dcryptedmsg = self.decryptRSAMessage(b64decode(incommingJson['message'])) retmsg = self.encryptRSAMessage(dcryptedmsg) identMsg = json.dumps( - {'header': retheader, 'headersignature': retheadersignature, + {'header': b64encode(retheader).decode('UTF-8'), 'headersignature': b64encode(retheadersignature).decode('UTF-8'), 'message': b64encode(retmsg).decode('UTF-8')}).encode( 'UTF-8') self.network.send_msg(self.clientAddr, identMsg)