-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Argument 1 must be at least CRYPTO_SIGN_BYTES long #127
Comments
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 (line 2878):
In Limesurvey, if I attempt to set a 64 token long, it changes it to 15. 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 encryt the email addresses. |
It sounds like Limesurvey has a bug in their code that uses sodium_compat rather than a sodium_compat bug. 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. |
Hi! I'm a developer for LimeSurvey. Do you have time to elaborate on this comment? |
I'm not sure what's unclear.
The functions name is It uses Read this blog post for a deeper understanding of the concepts: https://paragonie.com/blog/2015/08/you-wouldnt-base64-a-password-cryptography-decoded |
Thanks |
SodiumException
Argument 1 must be at least CRYPTO_SIGN_BYTES long.
/var/www/html/limesurvey/application/third_party/sodium_compat/src/Compat.php(2069)
PHP version: 7.4.15
We get this error when using Limesurvey with new PHP 7.4.15. Any ideas what we could be missing here?
The text was updated successfully, but these errors were encountered: