When reviewing your Plato event logs you may see the error Padding is invalid and cannot be removed. Plato handles this exception silently for end users however this error should be resolved as it could prevent Plato from sending emails or effect other modules that encrypt sensitive data.


This error can occur if your Plato private encryption keys have changed and data previously encrypted using your older private keys cannot be decrypted using the newer private keys.


To resolve this problem please ensure you copy the plato-keys.txt file from your previously configured secrets folder into any newer secrets folder. It's important to persist the plato-keys.txt file between any updates of Plato you perform. If the keys change within plato-keys.txt any previously encrypted data cannot be decrypted.