This commit is contained in:
@@ -36,8 +36,8 @@ 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')))}).decode(
|
||||
'ASCII')
|
||||
'message': b64encode(cipher.encrypt(retmsg.encode('UTF-8'))).decode('ASCII')}).encode(
|
||||
'UTF-8')
|
||||
self.network.send_msg(self.clientAddr, identMsg)
|
||||
|
||||
def sendMessage(self, message: bytes) -> None:
|
||||
|
||||
Reference in New Issue
Block a user