mihome-binary-protocol icon indicating copy to clipboard operation
mihome-binary-protocol copied to clipboard

Incorrect formula for IV

Open trosos opened this issue 4 years ago • 1 comments

In PROTOCOL.md, the formula for initialization vector is IV = MD5(MD5(Key) + Token) However, the following apears to be correct instead (at least for my dreame.vacuum.mb1808): IV = MD5(Key + Token)

trosos avatar Jan 30 '22 20:01 trosos

the document is wrong, iv = md5(key + token) is right. https://github.com/rytilahti/python-miio/blob/master/miio/protocol.py#L68

0x5e avatar Aug 07 '22 10:08 0x5e