Hello !
I don't know if it's normal, but I have a lot of trouble encoding my data to use a POST request...
In the link above, you will see that I use a site to encrypt my data, using my API key.
I use AES-CTR 256
This encryption will be replaced by a function in the language that will call the API, but for my tests, I use this site, but I also did the test with other sites.
In the link above, you will see that I use postman to simulate the request, but I have the same error that many have already had on the forum...
My $aesKeyLength is set to 128
=> debugLog(Parameter::getGlobalParameter('aesKeyLength'));
return 128.
If I use your function AesCtr::encrypt to encrypt , it works, but ONLY with this function... I used lot of website to encrypt datas, and none of them worked ...
Do you know where it comes from?
It seems that this encryption function causes a lot of problems for many users.
Thanks a lot
If $aesKeyLength is set to 128, encrypting with AES-CTR 256.
You must eitehr encrypt to 128 or change aesKeyLength to 256 (not that this is illegal in some countries)
Sorry, I cannot edit (I have written a mistake)
I encrypt in 128 and not in 256
That's why I don't understand why it doesn't work
I'm pretty sure there is a problem with the encryption, it only works with your function, but all the other functions I use (python, websites, etc...) do not give the same result.
The only solution I see is to comment the line that allows decryption, and to use only unencrypted data
Do you use the correct API Key, correspondiong to the user ?
Yes.. So strange...
Hello,
I had the same problem, you can find a part of a solution here :
https://www.projeqtor.org/fr/forum-fr/2-submit-issues/11200-api-encryption?start=6#31201
using it, the API works really great (an it is so helpful to give projeqtor the possibility to interact with other softwares).
@babynus, I would be really pleased to improve the API, I would just like to talk about the way you want to integrate things (posting a zip is not so useful).
Hope this helps,

