You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for sharing your information...
I think i've (almost) succesfully reverse engineered the decryption process..
Unfortunatly i still get a 401 when posting the decrypted password.
Maybe you have more success.
import binascii
import logging
import json
import requests
from requests.auth import HTTPDigestAuth
import voluptuous as vol
from passlib.utils import ab64_encode, ab64_decode
from passlib.hash import pbkdf2_sha1
import binascii
from Crypto.Cipher import AES
import os
Thank you for sharing your information...
I think i've (almost) succesfully reverse engineered the decryption process..
Unfortunatly i still get a 401 when posting the decrypted password.
Maybe you have more success.
import binascii
import logging
import json
import requests
from requests.auth import HTTPDigestAuth
import voluptuous as vol
from passlib.utils import ab64_encode, ab64_decode
from passlib.hash import pbkdf2_sha1
import binascii
from Crypto.Cipher import AES
import os
def confirm_connection(hass, host, username, password, salt, pin):
hash = pbkdf2_sha1.encrypt(pin, salt = salt.encode('utf-8'), salt_size = 128, rounds = 1331)
hexhash = (binascii.b2a_hex(ab64_decode(hash.split('$')[-1].encode())).decode())
hash = binascii.unhexlify(hexhash[:32])
The text was updated successfully, but these errors were encountered: