-
Notifications
You must be signed in to change notification settings - Fork 22
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 Encryption for Archer C1200 Router Authentication #50
Add Encryption for Archer C1200 Router Authentication #50
Conversation
Added encryption method for archer C1200
Added encryption method for the archer C1200
Hi! I just realized that the current code isn’t backwards compatible with users who are still using the web encrypted password. Would you prefer that I make it backwards compatible, or would you rather we display a warning message if someone uses the web encrypted password? At the moment, if the web encrypted password is passed in, users will see a message indicating that the password is too long to encrypt.
Please let me know which option you’d prefer, and I’ll make the changes accordingly! |
@swwgames Thank you for this addition! |
@swwgames Hi |
Hi @AlexandrErohin , I tested the Update and it works great! |
@swwgames Hi |
Hi @AlexandrErohin, |
I think it will not work. As it uses this provider https://github.com/AlexandrErohin/TP-Link-Archer-C6U/blob/main/tplinkrouterc6u/client.py#L1398 - so it will always get wrong password from TplinkC1200Router and will never get to AC5400X client. |
We can change the provider for the TplinkC1200Router, it uses
When I have the time I can add this functionality. |
I tested the following code to check if it is the Archer C1200 model:
This works, but maybe other models use the same encryption as the Archer C1200, this way they won't work with the encryption of the C1200. For those routers we could use a separate class that uses the web encrypted password. |
@swwgames That would be great, but unfortunately there are some other routers which use your encryption.
First time - you pass your plain password |
I tested your code, these are the results:
As you can see, the encryption does not work anymore. |
@swwgames Thank you! From your test I have found the error |
Yes it works now!
|
@swwgames Thank you for the help! |
@swwgames Hi get_vpn_status https://github.com/AlexandrErohin/TP-Link-Archer-C6U/blob/main/tplinkrouterc6u/client/mr.py#L684 |
Hi @AlexandrErohin, |
@swwgames Yes. Thank you! |
This pull request introduces an enhancement for the Archer C1200 router to allow users to authenticate with their plain password, rather than requiring the web encrypted password.
I added the encryption code to the EncryptionWrapper class in the encryption.py file.
If you like me to change anything please let me know.