dji-firmware-tools icon indicating copy to clipboard operation
dji-firmware-tools copied to clipboard

Issue with Encryption Key

Open anitasusan opened this issue 2 years ago • 1 comments

Hi, I was playing with few dji packages by using this repository. However, whenever I try to decrypt them with one of the inbuilt keys provided such as PRAK-2019-09, the AES module threw an error indicating that it has 'invalid AES key length (524 bytes)'. I was looking into the file dji_imah_fwsig.py and my python version is 3.8. Could you please let me know if it is caused by python compatibility issue or whether its a pre-known issue.

Thanks in advance

anitasusan avatar Jun 19 '22 23:06 anitasusan

AES is encryption. Keys of size 524 are used for signing.

'tests' folder contains scripts which can use proper keys on proper firmwares. Analyze those to figure out the keys.

mefistotelis avatar Jun 20 '22 00:06 mefistotelis