Hello,
I’m working on an extension that allows me to encrypt specific fields in the database using EspoCRM’s native encryption. So far, I’ve successfully implemented encryption across any entity where fields are marked for encryption in the Entity Manager.
The issue I’m facing now is decrypting those fields on the server side before they’re displayed to the user. I tried using a ReadHook, but those appear to be entity-specific.
Does anyone know a way to trigger a hook universally—without specifying a particular entity? I want decryption to work across all entities as long as a field is flagged as encrypted. However, I haven’t been able to find a suitable trigger to execute the decryption code.
For reference, I’ve already implemented the beforeSave hook globally for encryption without any issues.
Thanks in advance for any insights!
I’m working on an extension that allows me to encrypt specific fields in the database using EspoCRM’s native encryption. So far, I’ve successfully implemented encryption across any entity where fields are marked for encryption in the Entity Manager.
The issue I’m facing now is decrypting those fields on the server side before they’re displayed to the user. I tried using a ReadHook, but those appear to be entity-specific.
Does anyone know a way to trigger a hook universally—without specifying a particular entity? I want decryption to work across all entities as long as a field is flagged as encrypted. However, I haven’t been able to find a suitable trigger to execute the decryption code.
For reference, I’ve already implemented the beforeSave hook globally for encryption without any issues.
Thanks in advance for any insights!

Comment