- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Argument 1 must be at least CRYPTO_SIGN_BYTES long
- pathros
- Topic Author
- Offline
- New Member
Less
More
2 years 10 months ago - 2 years 10 months ago #216948
by pathros
Argument 1 must be at least CRYPTO_SIGN_BYTES long was created by pathros
I am using latest version of Limesurvey 5.0.1.
I created a new survey, which I want it to be anonymous but with a list of participants. I have created tokens and sent them to the participants. However, when they click on the invitation link, they get the following error:
Taking a look into the source code, right at the "compat.php" file we have:
In Limesurvey, if I attempt to set a 64 token long, it changes it to 15.
So, I don't get it. What should be longer than 64?
What does that mean??? How can I fix it??? Can anybody shed some light?
I have tried the same thing in Limesurvey version 3 LTS, and everything works flawlessly. However, I want to use the version 5, since it has the ability to encrypt the email addresses.
Moreover, I got this answer from Paragonie:
I created a new survey, which I want it to be anonymous but with a list of participants. I have created tokens and sent them to the participants. However, when they click on the invitation link, they get the following error:
Server error 500: Argument 1 must be at least CRYPTO_SIGN_BYTES long.
Taking a look into the source code, right at the "compat.php" file we have:
Code:
const CRYPTO_SIGN_BYTES = 64; /* Input validation: */ if (ParagonIE_Sodium_Core_Util::strlen($signedMessage) < self::CRYPTO_SIGN_BYTES) { throw new SodiumException('Argument 1 must be at least CRYPTO_SIGN_BYTES long.'); }
In Limesurvey, if I attempt to set a 64 token long, it changes it to 15.
So, I don't get it. What should be longer than 64?
What does that mean??? How can I fix it??? Can anybody shed some light?
I have tried the same thing in Limesurvey version 3 LTS, and everything works flawlessly. However, I want to use the version 5, since it has the ability to encrypt the email addresses.
Moreover, I got this answer from Paragonie:
It sounds like Limesurvey has a bug in their code that uses sodium_compat rather than a sodium_compat bug.[url] github.com/LimeSurvey/LimeSurvey/blob/1a...SSodium.php#L88-L128 [/url]Weirdly, their function claims to be "encryption" but isn't.We recommend talking to the Limesurvey developers. Paragon Initiative Enterprises does not develop or support Limesurvey.
Last edit: 2 years 10 months ago by pathros.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10098
- Thank you received: 3589
2 years 10 months ago #216952
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Argument 1 must be at least CRYPTO_SIGN_BYTES long
Please file a bug report.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- pathros
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
2 years 10 months ago #216954
by pathros
Replied by pathros on topic Argument 1 must be at least CRYPTO_SIGN_BYTES long
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11637
- Thank you received: 2737
2 years 10 months ago #216958
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Argument 1 must be at least CRYPTO_SIGN_BYTES long
bugs.limesurvey.org
Same credentials as in the forum.
Same credentials as in the forum.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: tpartner
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
2 years 10 months ago #216980
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Argument 1 must be at least CRYPTO_SIGN_BYTES long
bugs.limesurvey.org/view.php?id=17353
:)
Please : send the contact at Paragon Initiative Enterprises to support@limesurvey.org
Please : send the contact at Paragon Initiative Enterprises to support@limesurvey.org
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.