Skip to content

Commit

Permalink
make bandit happy
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Oct 27, 2024
1 parent 9dc5513 commit 9e4cf2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miio/extract_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def decrypt_ztoken(ztoken):
key = bytes.fromhex(keystring)
cipher = Cipher(
algorithms.AES(key),
modes.ECB(),
backend=default_backend(), # nosec
modes.ECB(), # nosec
backend=default_backend(),
)
decryptor = cipher.decryptor()
token = decryptor.update(bytes.fromhex(ztoken[:64])) + decryptor.finalize()
Expand Down

0 comments on commit 9e4cf2c

Please sign in to comment.