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

This commit is contained in:
Torma Kristóf 2021-04-26 22:27:43 +02:00
parent 1e54e17cea
commit 25fbb03259
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -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'),