Skip to content

Commit

Permalink
General cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Dec 27, 2021
1 parent 17939ae commit b42ee6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion PlugInstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import logging
from DataSource import DataSource
from typing import Type
from time import time
from typing import Dict


Expand Down
2 changes: 2 additions & 0 deletions TPLinkEncryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

from struct import pack


def _generate_bytes(unencrypted):
key = 171
for unencryptedbyte in unencrypted:
Expand All @@ -33,6 +34,7 @@ def encrypt(string):
unencrypted = string.encode()
return pack(">I", len(unencrypted)) + bytes(_generate_bytes(unencrypted))


def decrypt(string):
key = 171
result = ""
Expand Down

0 comments on commit b42ee6f

Please sign in to comment.