From 8d7754edc2d8e7a2a2b84b8195a3b84ffacee81a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 25 Apr 2021 17:50:43 +0200 Subject: [PATCH] oops --- server/netwrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/netwrapper.py b/server/netwrapper.py index b7b38ef..cae72f6 100644 --- a/server/netwrapper.py +++ b/server/netwrapper.py @@ -36,7 +36,7 @@ class NetWrapper: cipher = PKCS1_OAEP.new(self.currentClientPublicKey) identMsg = json.dumps( {'type': 'IDY', 'source': self.network.own_addr, - 'message': b64encode(cipher.encrypt(retmsg.encode('UTF-8')))}).encode( + 'message': b64encode(cipher.encrypt(retmsg.encode('UTF-8')))}).decode( 'ASCII') self.network.send_msg(self.clientAddr, identMsg)