bytes
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2021-04-26 00:26:53 +02:00
parent a247271021
commit 8a4174c6e7
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class NetWrapper:
cipherkey = dh.gen_shared_key(serverpubkey).encode('UTF-8')
hasher = SHA512.new()
hasher.update(cipherkey)
self.cipherkey = hasher.hexdigest()[:32]
self.cipherkey = (hasher.hexdigest()[:32]).encode('UTF-8')
def authenticate(self, password: str):
message = f"LIN {self.username} {password}".encode('UTF-8')