View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Problem using Projeqtor API - ProjeQtOr
 
 

Problem using Projeqtor API

More
25 Nov 2021 14:56 #1 by ProjeqtorRequest
Hello !

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

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.

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





 
Attachments:

Please Log in or Create an account to join the conversation.

More
25 Nov 2021 17:36 #2 by babynus
Replied by babynus on topic Problem using Projeqtor API
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)

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
25 Nov 2021 18:04 #3 by ProjeqtorRequest
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

 

Please Log in or Create an account to join the conversation.

More
28 Nov 2021 16:17 #4 by ProjeqtorRequest
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

Please Log in or Create an account to join the conversation.

More
29 Nov 2021 08:38 #5 by babynus
Replied by babynus on topic Problem using Projeqtor API
Do you use the correct API Key, correspondiong to the user ?

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
29 Nov 2021 12:15 #6 by ProjeqtorRequest
Yes.. So strange...

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.043 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.