- Posts: 22
- Thank you received: 5
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Question attribute "Encrypted" is used to enable data encryption
- MikhailGorbunov
- Topic Author
- Offline
- Junior Member
Less
More
4 months 1 week ago #253705
by MikhailGorbunov
Replied by MikhailGorbunov on topic Question attribute "Encrypted" is used to enable data encryption
Thank you for your help.
Please Log in to join the conversation.
- OpenStudio
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 2
4 months 6 days ago - 4 months 6 days ago #253742
by OpenStudio
Replied by OpenStudio on topic Question attribute "Encrypted" is used to enable data encryption
For reference, if someone may need to encrypt the data instead:
Code:
base64_encode(sodium_crypto_secretbox($data,sodium_hex2bin($encryptionnonce),sodium_hex2bin($encryptionsecretboxkey)))
Last edit: 4 months 6 days ago by OpenStudio.
The following user(s) said Thank You: DenisChenu, MikhailGorbunov
Please Log in to join the conversation.
- MikhailGorbunov
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 22
- Thank you received: 5
4 months 6 days ago - 4 months 6 days ago #253798
by MikhailGorbunov
Tryed to write, that no need to
my messages was marked as spam.
Replied by MikhailGorbunov on topic Question attribute "Encrypted" is used to enable data encryption
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)))
Tryed to write, that no need to
Code:
base64_encode() on $data in that case. But
Last edit: 4 months 6 days ago by MikhailGorbunov.
The following user(s) said Thank You: DenisChenu, OpenStudio
Please Log in to join the conversation.
- OpenStudio
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 2
4 months 6 days ago - 4 months 6 days ago #253807
by OpenStudio
Replied by OpenStudio on topic Question attribute "Encrypted" is used to enable data encryption
Yes exactly, even in my case I didn't base64_encode() the $data parameter.
In nay case, this thread can be considered as solved!
Thanks a lot to everyone!
ps: i also have the spam error quite a lot
In nay case, this thread can be considered as solved!
Thanks a lot to everyone!
ps: i also have the spam error quite a lot
Last edit: 4 months 6 days ago by OpenStudio.
Please Log in to join the conversation.
- MikhailGorbunov
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 22
- Thank you received: 5
4 months 6 days ago #253808
by MikhailGorbunov
Replied by MikhailGorbunov on topic Question attribute "Encrypted" is used to enable data encryption
Oh. I`m sorry then.
First code on my "A new reply has been posted" email was
First code on my "A new reply has been posted" email was
Code:
[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.