0

Keep in mind that I'm very new and lost when it comes to coding.

I'm trying to generate a temporary for a smart lock that uses the Tuya App using Postman. I am currently stuck on the password as it requires it to be encrypted. password requirements from tuya It says that i need to decrypt the "ticket_key" (which i manage get through the "Get a temporary key for password encryption" request) using the "accessKey". Can anyone help me locate this accessKey and explain how i am supposed to encrypt and decrypt (do i need to create a program for it or is there one already available).

Thanks in advance!

I tried using ChatGPT to write me a program that encrypts and decrypts but didnt manage to get anything usable out of it.

  • As far as I can read the requirements there are just some steps to run: 1) get the ticket_key and the accessKey from the platform, 2) convert the ticket_key from hex encoding to binary format (maybe the accessKey needs this as well), 3) setup a decryption program with AES encryption is ECB mode and PKCS#7 (or #5 in Java, they are equals) and decrypt the ticket_key with it. As you didn't tag any program language it's difficult to give further help but please keep in mind that Stackoverflow is not a free coding platform - you need to do most of the work yourself :-) – Michael Fehr Jan 04 '23 at 15:54

0 Answers0