- Posts: 24
- Thank you received: 5
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
[code][code]while ($row=mysqli_fetch_array($result )){ sodium_crypto_secretbox_open($row['111111X1X1SQ001'],$nonce,$key) }
with nonce and key from config.php trows
Please Log in to join the conversation.
Please Log in to join the conversation.
Hello.Did you manage to solve?
I am also having the same necessity/issue!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Error in nonce or key format. You can see at line 139 they are not decoded.Some code
github.com/LimeSurvey/LimeSurvey/blob/41...re/LSSodium.php#L135
Maybe need base64_decode ?
$this->sEncryptionNonce, $this->sEncryptionSecretBoxKey
Please Log in to join the conversation.
Please Log in to join the conversation.
sodium_crypto_secretbox_open($row['111111X1X1SQ001'],sodium_hex2bin('nonce'),sodium_hex2bin('key'))
sodium_crypto_secretbox_open() output with same effect.
Please Log in to join the conversation.
sodium_crypto_secretbox_open(base64_decode($row['111111X1X1SQ001']),sodium_hex2bin('$nonce'),sodium_hex2bin('$key'))
Please Log in to join the conversation.
Please Log in to join the conversation.