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'))
|
||||
|
||||
def identifyServer(self) -> bool:
|
||||
randommsg = self.randomStringGenerator().encode('UTF-8')
|
||||
encrypted_msg = self.ecryptRSAMessage(randommsg)
|
||||
randommsg = self.randomStringGenerator()
|
||||
encrypted_msg = self.ecryptRSAMessage(randommsg.encode('UTF-8'))
|
||||
header, headersignature = self.signRSAHeader('IDY', {'username': self.username})
|
||||
identMsg = json.dumps(
|
||||
{'header': b64encode(header).decode('UTF-8'),
|
||||
|
Loading…
Reference in New Issue
Block a user