fucking god may fuck this code
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7ba66b638b
commit
f8b947690b
@ -82,7 +82,7 @@ class NetWrapper:
|
|||||||
try:
|
try:
|
||||||
retnonce = b64decode(b64['nonce'])
|
retnonce = b64decode(b64['nonce'])
|
||||||
retciphertext = b64decode(b64['message'])
|
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')
|
plaintext = retcipher.decrypt(retciphertext).decode('UTF-8')
|
||||||
if plaintext != "OK":
|
if plaintext != "OK":
|
||||||
raise Exception('Authentication error')
|
raise Exception('Authentication error')
|
||||||
|
Loading…
Reference in New Issue
Block a user