wyzecam icon indicating copy to clipboard operation
wyzecam copied to clipboard

Solve DTLS in new wyze FW

Open AdiAbuAli opened this issue 3 years ago • 1 comments

🚀 Feature Request

The below code suggested by merlt8 to overcome DTLS feature in new wyze FW, where current code cannot access RTSP with new FW with DTLS

def getAuthKey(mac, enr): key = enr + mac.upper() hash = hashlib.sha256(key.encode()) print(hash.digest()) bArr = bytearray(hash.digest())[0:6] print(bArr) authKey = base64.standard_b64encode(bArr).decode().replace('+', 'Z').replace('/', '9').replace('=', 'A').encode() return authKey

av_account: admin av_password: camera.enr

🔈 Motivation

This will help keep the code compatible with new wyze FW updates (latest one compatabile was in August wyze FW release). Wyze official RTSP will stay beta, and they will not maintain it, as they mentioned explicitly (they dont have enough resources to maintain 2 branches of FW). And always, non RTSP wyze FW maintained and updated well....hut this DTLS is now showstopper.

🛰 Alternatives

Dont update wyze FW anymore.

📎 Additional context

AdiAbuAli avatar Oct 10 '21 14:10 AdiAbuAli

Yes please, this would be great!

iliabaranov avatar Feb 28 '22 22:02 iliabaranov