0

I am working on Tuya's IOT API, and trying to send a password field using the API. Their documentation states this should be the value for the password field:

* Indicates the length of the original password.
* Wi-Fi lock: `7`.
* Zigbee or Bluetooth lock: `6`.
* Encryption algorithm: AES.
* Mode: ECB mode and PKCS7Padding.
* Data block: 128 bits.
* Key: The original key. To get this key, decrypt the temporary key `ticket_key` with AES by using the `accessKey` that is issued by the platform.

The output is in the format of hex.

I have the access key and the ticket_key yet I couldn't write a working code for it, tried python, nodejs, php

Does anyone knows how to implement this?

Broshi
  • 3,334
  • 5
  • 37
  • 52

0 Answers0