This commit is contained in:
parent
1e54e17cea
commit
25fbb03259
@ -58,8 +58,8 @@ class NetWrapper:
|
|||||||
return decodedmsg, json.loads(b64decode(decodedmsg['header']).decode('UTF-8'))
|
return decodedmsg, json.loads(b64decode(decodedmsg['header']).decode('UTF-8'))
|
||||||
|
|
||||||
def identifyServer(self) -> bool:
|
def identifyServer(self) -> bool:
|
||||||
randommsg = self.randomStringGenerator().encode('UTF-8')
|
randommsg = self.randomStringGenerator()
|
||||||
encrypted_msg = self.ecryptRSAMessage(randommsg)
|
encrypted_msg = self.ecryptRSAMessage(randommsg.encode('UTF-8'))
|
||||||
header, headersignature = self.signRSAHeader('IDY', {'username': self.username})
|
header, headersignature = self.signRSAHeader('IDY', {'username': self.username})
|
||||||
identMsg = json.dumps(
|
identMsg = json.dumps(
|
||||||
{'header': b64encode(header).decode('UTF-8'),
|
{'header': b64encode(header).decode('UTF-8'),
|
||||||
|
Loading…
Reference in New Issue
Block a user