Forum

Problem using Proje...
 
Notifications
Retirer tout

Problem using Projeqtor API

7 Posts
3 Utilisateurs
0 Reactions
3,822 Vu
(@projeqtorrequest)
Posts: 5
Active Member
Début du sujet
 
[#7917]

Hello !

I don't know if it's normal, but I have a lot of trouble encoding my data to use a POST request...

https://ibb.co/QCMh1YM  

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.

https://ibb.co/6Fxm6zb

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

 


 
Posté : 25/11/2021 4:56 pm
(@babynus)
Posts: 14952
Membre Admin
 

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)


 
Posté : 25/11/2021 7:36 pm
(@projeqtorrequest)
Posts: 5
Active Member
Début du sujet
 

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

 


 
Posté : 25/11/2021 8:04 pm
(@projeqtorrequest)
Posts: 5
Active Member
Début du sujet
 

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


 
Posté : 28/11/2021 6:17 pm
(@babynus)
Posts: 14952
Membre Admin
 

Do you use the correct API Key, correspondiong to the user ?


 
Posté : 29/11/2021 10:38 am
(@projeqtorrequest)
Posts: 5
Active Member
Début du sujet
 

Yes.. So strange...


 
Posté : 29/11/2021 2:15 pm
Fanch
(@fsouliers)
Posts: 86
Estimable Member
 

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,


 
Posté : 01/12/2021 11:02 pm
Share:
Retour en haut