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

fixed_key.bmp #1

Open
kueblc opened this issue Apr 2, 2019 · 3 comments
Open

fixed_key.bmp #1

kueblc opened this issue Apr 2, 2019 · 3 comments

Comments

@kueblc
Copy link

kueblc commented Apr 2, 2019

Great work reverse engineering the bitmap embedded key, I've been working at this too with small gains.

I was successfully able to use your code to extract the t_s.bmp key from com.tuya.smartlife version 3.8.5, app secret ekmnwp9f5pnh3trdtpgy, extracted key jfg5rs5kkmrj5mxahugvucrsvw43t48x.

Do you have any ideas about what fixed_key.bmp might be?

bmp_keys.zip

@nalajcie
Copy link
Owner

Hey,
sorry for not responding earlier, I was busy with pushing the necessary changes to TuyaAPI/cloud.

Right now you should be able to use the new version (v0.4.0) to access Your devices from the cloud, so You can test the extracted credentials. It would be great if You could create a PR to add credentials for com.tuya.smartlife to the README.md later :).

Regarding the fixed_key.bmp - I haven't researched that, but Tuya app is a mess - there is a separate set of clientId/appSecret in the code which is never used (the code looks like some "sample" implementation) - maybe then the fixed_key.bmp is used? Or maybe it's/will be used in new MQTT sign algorithm?

As I wanted only to gain cloud access to my devices, I didn't look at the code not directly linked with it.

I'll keep this issue open, maybe somebody else will be able solve this mystery in the future :).

@pergolafabio
Copy link

hey @kueblc , can you share the secret2 and certsign for the smart life app ?

thnx

@pergolafabio
Copy link

ok, found them , maybe usefull for in the readme, these are for smartlife:

{
  "key": "ekmnwp9f5pnh3trdtpgy",
  "secret": "r3me7ghmxjevrvnpemwmhw3fxtacphyg",
  "secret2": "jfg5rs5kkmrj5mxahugvucrsvw43t48x",
  "certSign": "0F:C3:61:99:9C:C0:C3:5B:A8:AC:A5:7D:AA:55:93:A2:0C:F5:57:27:70:2E:A8:5A:D7:B3:22:89:49:F8:88:FE" 
}

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

3 participants