fogyi vagyok
continuous-integration/drone/push Build is passing Details

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
1 changed files with 2 additions and 2 deletions

View File

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