Hi Joerg,
Thanks for responding.
Here is my use case:
User enters name, email id, phone number and address in AEM for subscribing to the newsletter, by using AEM Forms or otherwise.
This info needs to be stored in JCR repository (CRX) and that info needs to be used for sending newsletter, sms alerts , etc by the same AEM.
I agree that it is mot a good practice to store PII in AEM.
But, let us say that client has mandated this and asked us to take precautionary security measures accordingly.
If we are using forms, on Form Submit, we could get control, encrypt it and store in AEM.
If not using AEM Forms, we do not get control, as the data is stored by AEM inside JCR directly, with the.OOB functionality.
In such a case, how could we encrypt data?
The only solution I am aware is to write an Event Handler on that JCR Node, to know when the value is stored/updated, encrypt using any outside tool and store the encrypted value.
Similarly, whenever the data is retrieved, that event needs to be handled by decrypting and returning.
Kindly suggest.
Thanks,
Rama.