Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect formula for IV #11

Open
trosos opened this issue Jan 30, 2022 · 1 comment
Open

Incorrect formula for IV #11

trosos opened this issue Jan 30, 2022 · 1 comment

Comments

@trosos
Copy link

trosos commented Jan 30, 2022

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)

@0x5e
Copy link

0x5e commented Aug 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants