fucking god may fuck this code
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2021-04-26 13:37:56 +02:00
parent 7ba66b638b
commit f8b947690b
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -82,7 +82,7 @@ class NetWrapper:
try:
retnonce = b64decode(b64['nonce'])
retciphertext = b64decode(b64['message'])
retcipher = ChaCha20.new(self.cipherkey, nonce=retnonce)
retcipher = ChaCha20.new(key=self.cipherkey, nonce=retnonce)
plaintext = retcipher.decrypt(retciphertext).decode('UTF-8')
if plaintext != "OK":
raise Exception('Authentication error')