From eb76a67451b18c5b0807aba5322b3df8f76eae12 Mon Sep 17 00:00:00 2001 From: Uwe Winter Date: Sat, 23 Sep 2017 01:19:44 +1000 Subject: [PATCH] Works with H100 (AU) HW: 2.0, SW:1.0.10 now --- tplink-smartplug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tplink-smartplug.py b/tplink-smartplug.py index 3a2fde8..c4dec9b 100644 --- a/tplink-smartplug.py +++ b/tplink-smartplug.py @@ -51,7 +51,7 @@ commands = {'info' : '{"system":{"get_sysinfo":{}}}', # XOR Autokey Cipher with starting key = 171 def encrypt(string): key = 171 - result = "\0\0\0\0" + result = "\0\0\0"+chr(len(string)) for i in string: a = key ^ ord(i) key = a