Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Problem using Proje...
 
Notifications
Clear all

Problem using Projeqtor API

7 Posts
3 Users
0 Reactions
3,844 Views
(@projeqtorrequest)
Posts: 5
Active Member
Topic starter
 
[#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

 


 
Posted : 25 Nov 2021 16H56
babynus
(@babynus)
Posts: 14966
Main Contributor 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)


 
Posted : 25 Nov 2021 19H36
(@projeqtorrequest)
Posts: 5
Active Member
Topic starter
 

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

 


 
Posted : 25 Nov 2021 20H04
(@projeqtorrequest)
Posts: 5
Active Member
Topic starter
 

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


 
Posted : 28 Nov 2021 18H17
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 29 Nov 2021 10H38
(@projeqtorrequest)
Posts: 5
Active Member
Topic starter
 

Yes.. So strange...


 
Posted : 29 Nov 2021 14H15
Fanch
(@fsouliers)
Posts: 86
Active 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,


 
Posted : 01 Dec 2021 23H02
Share:

Scroll to Top