View Issue Details

IDProjectCategoryView StatusLast Update
0006018Composrcns_cpfspublic2024-10-25 17:52
ReporterPatrick SchmalstigAssigned To 
SeverityFeature-request 
Status non-assignedResolutionopen 
Product Version 
Fixed in Version 
Summary0006018: Use libsodium + site salt for CPF encryption
DescriptionWhen encrypting a field, change from using OpenSSL to libsodium. Now that we have data/keys, libsodium can automatically generate a public/private key pair.

This is a much more reliable way to support encrypted fields.

Since the password prompt would not be needed anymore (no pass-phrases), we could re-purpose that to a new field option allowing to specify a password required.

The workflow would be this:

Saving
- If a password is specified, the field value is secret-boxed with the password.
- The field value, or secret-boxed field value, is encrypted with the key pair.
- The encrypted value is stored.

Loading
- The encrypted value is retrieved.
- It is decrypted with the key-pair.
- If it still looks encrypted, a password is prompted.
- The data is un-secret-boxed with the password.

This is not exact as I don't fully recall sodium's functions but this is the basic principle.
TagsRoadmap: Over the horizon
Time estimation (hours)
Sponsorship open

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2024-10-25 17:52 Patrick Schmalstig New Issue
2024-10-25 17:52 Patrick Schmalstig Tag Attached: Roadmap: Over the horizon