Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Encryption keys creation

  • franz007
  • franz007's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 1 month ago #240934 by franz007
Encryption keys creation was created by franz007
Please help us help you and fill where relevant:
Your LimeSurvey version: 20.02.2023
Own server or LimeSurvey hosting: Own server
Survey theme/template: Not relevant
==================
I tried using the encryption attribute for one question but data is stored in clear text.
Actually I wasn't asked to generate encryption keys at any point during installation.
In the manual I couldn't find any hint about creating keys.
How do you create keys?
Best regards,
Franz

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 1 month ago #240938 by holch
Replied by holch on topic Encryption keys creation
Did you read this page in the manual (Google Seach: "Limesurvey manual encryption")?

manual.limesurvey.org/Data_encryption

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • franz007
  • franz007's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 1 month ago - 1 year 1 month ago #240963 by franz007
Replied by franz007 on topic Encryption keys creation
Yes. I read that and had a look at the comments in config-defaults.php and security.php but couldn't find anything a part from the parameters to be used.
Internet search results didn't lead to any clarification.
Last edit: 1 year 1 month ago by franz007.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 1 month ago #240999 by Joffm
Replied by Joffm on topic Encryption keys creation
Hi, 
I do not see your problem.
The encryption keys are in "security.php".
If you remove this part it is generated again the first time you set a question to "encrypted"

And as you see in the database the data is encrypted
 

Or did you think the encrypted value is shown in your LS answer table?
Of course, YOU get the encrypted results in the LS GUI, in your exports.
 

Joffm




 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • franz007
  • franz007's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 1 month ago - 1 year 1 month ago #241001 by franz007
Replied by franz007 on topic Encryption keys creation
Silly me.
I took for granted that also the
Code:
$config['encryptionkeypair'] = '';
$config['encryptionpublickey'] = '';
$config['encryptionsecretkey'] = '';
parameters in config.php should have been configured for it to work.
Actually I didn't check the table.
Sorry...
Thanks for your help
Last edit: 1 year 1 month ago by DenisChenu.

Please Log in to join the conversation.

More
1 year 3 weeks ago #242041 by MatthiasMarschner
Replied by MatthiasMarschner on topic Encryption keys creation
We have exactly the same problem. The new functions for use of public-/private-key aren't documented anywhere. I'd love to contribute in the wiki, but we are no coders to figure out, how the code works.

Please Log in to join the conversation.

More
1 year 3 weeks ago #242042 by jelo
Replied by jelo on topic Encryption keys creation
You're right that the feature isn't covered with all issues and questions which might pop up in the manual.

I recommend to copy security.php first.

If you're sure that your LimeSurvey installation has no encryptionkeys in security.php you can trigger a recreation of new keys via deleting security.php and create a survey and enable encryption for a question.

There is no key management section in the GUI.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 3 weeks ago #242044 by DenisChenu
Replied by DenisChenu on topic Encryption keys creation
encryption keypair can be in config.php too

After setup i move it in config.php to have only one file with all configuration part.

(it's silly to have multiple file for configuration).

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.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose