This commit is contained in:
parent
25fbb03259
commit
098e279eb8
@ -84,7 +84,7 @@ class NetWrapper:
|
|||||||
header, headersignature = self.signRSAHeader("DH",{})
|
header, headersignature = self.signRSAHeader("DH",{})
|
||||||
jsonmsg = json.dumps(
|
jsonmsg = json.dumps(
|
||||||
{'header': b64encode(header).decode('UTF-8'), 'headersignature': b64encode(headersignature).decode('UTF-8'),
|
{'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)
|
self.network.send_msg(self.serverAddr, jsonmsg)
|
||||||
decodedmsg, header = self.recieveAndUnpackRSAMessage()
|
decodedmsg, header = self.recieveAndUnpackRSAMessage()
|
||||||
if not self.verifyRSAHeaderSignature(b64decode(decodedmsg['header']),
|
if not self.verifyRSAHeaderSignature(b64decode(decodedmsg['header']),
|
||||||
|
Loading…
Reference in New Issue
Block a user