Skip to content

Commit

Permalink
changed hash
Browse files Browse the repository at this point in the history
  • Loading branch information
georgezhao2010 committed Sep 20, 2023
1 parent 13498af commit 108089b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/midea/core/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def encrypt_iam_password(self, login_id, data) -> str:

@staticmethod
def get_deviceid(username):
return md5(f"Hello, {username}!".encode("ascii")).digest().hex()[:16]
return sha256(f"Hello, {username}!".encode("ascii")).digest().hex()[:16]

@staticmethod
def get_udp_id(appliance_id, method=0):
Expand Down

0 comments on commit 108089b

Please sign in to comment.