-
-
Notifications
You must be signed in to change notification settings - Fork 227
Add klap lv2 #550
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
Add klap lv2 #550
Conversation
@@ -74,6 +77,12 @@ | |||
return hash | |||
|
|||
|
|||
def _sha1(payload: bytes) -> bytes: | |||
digest = hashes.Hash(hashes.SHA1()) # noqa: S303 | |||
digest.update(payload) |
Check failure
Code scanning / CodeQL
Use of a broken or weak cryptographic hashing algorithm on sensitive data
The auth fails on my tapoplug:
Here's how it looks with plugp100:
so I suppose the protocol differs a bit more than just on those pieces that were changed in this PR? |
This PR won't get a TAPO plug doing a handshake unless it has the KLAP encrypt_type, I just thought it might work with this EP25 KASA device but I'm not that hopeful. |
Untested PR to add klap lv2 support to klapprotocol. Not tested on a device but based on #477 (comment) and this TAPO PR.
Could be used to test whether it fixes this issue although I don't think it will because AES seems to be the protocol that TAPO uses.
Superseded by #552 and #557