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

This commit is contained in:
Torma Kristóf 2021-04-26 00:23:28 +02:00
parent e37fbd929b
commit bfb7e26d27
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -67,7 +67,6 @@ class NetWrapper:
hasher.update(cipherkey)
self.cipherkey = hasher.hexdigest()[:32]
def authenticate(self, password: str):
message = f"LIN {self.username} {password}".encode('UTF-8')
cipher = ChaCha20.new(key=self.cipherkey, nonce=get_random_bytes(12))