This commit is contained in:
Torma Kristóf 2021-04-25 17:50:43 +02:00
parent 7c0e66c450
commit 8d7754edc2
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -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)