Issue Feature Closed

#103624Allow the encryption of single fields in the model

Dieter Porth 04/13/24, 18:35 updated 04/03/25, 12:20

Description

Confidential data should be encrypted in the database.

I wish to have an easy API to encrypt/decrypt single fields of my model in the database.

I have written a test-Extension, which show how it could work.
https://extensions.typo3.org/extension/fieldencryption

The disadvantage of the extension: I have no idea, how to encrypt data in rendering cases with typoscript. I havn’t currently tested it.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 2

  1. Garvin Hicking commented and changed category <span data-processor="relativetime" data-value="2024-07-31T09:17:08+00:00" > 07/31/24, 09:17 </span>

    I tend to say that this concept should probably not be offered by the Core, but is a good idea for an extension. PSR event usage should allow to also influence typoscript en/decoding from the TypoScript parser.

    I want to state though that encryption within the PHP ecosystem is a game of hide and seek and “security by obscurity”. Since keys for decryption are always readable to the PHP process, attackers would be able to decode this information. So the main use case for me would be to hide sensitive data from editors – in that case though I wonder if they should access encrypted fields at all?

  2. Oliver Hader commented and changed status New Closed <span data-processor="relativetime" data-value="2025-04-03T12:20:50+00:00" > 04/03/25, 12:20 </span>

    I’m closing this ticket… the topic “encryption” is very broad – and it really depends on the what data and for which scope it shall be protected.
    A generic encryption API would have to provide functionality for various algorithms, symmetric and asymmetric encryption, and concepts for querying/searching data efficiently. Besides that, there’s a difference between “perceived” security by using encryption and real E2E encryption in terms of “zero knowledge storage”.