fuckyfuck
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2021-04-26 22:30:12 +02:00
parent 25fbb03259
commit 098e279eb8
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -84,7 +84,7 @@ class NetWrapper:
header, headersignature = self.signRSAHeader("DH",{})
jsonmsg = json.dumps(
{'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)
decodedmsg, header = self.recieveAndUnpackRSAMessage()
if not self.verifyRSAHeaderSignature(b64decode(decodedmsg['header']),