- Posts: 24
- Thank you received: 5
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
base64_encode(sodium_crypto_secretbox($data,sodium_hex2bin($encryptionnonce),sodium_hex2bin($encryptionsecretboxkey)))
Please Log in to join the conversation.
Thank you OpenStudio.For reference, if someone may need to encrypt the data instead:
Code:base64_encode(sodium_crypto_secretbox($data,sodium_hex2bin($encryptionnonce),sodium_hex2bin($encryptionsecretboxkey)))
base64_encode() on $data in that case. But
Please Log in to join the conversation.
Please Log in to join the conversation.
[color=#999999]echo sodium_crypto_secretbox(base64_encode($data),sodium_bin2hex($encryptionnonce),sodium_bin2hex($encryptionsecretboxkey));[/color] [color=#999999]base64_decode => base64_encode sodium_hex2bin => sodium_bin2hex[/color]
Please Log in to join the conversation.