A client asked me to encrypt the data being stored by one of their GF forms as described in this thread. They wanted the form values encrypted in the database, a few non-sensitive values added to the notification email and the ability to view the unencrypted values in the admin panel.
The examples on the pages listed below didn't work:
There were 3 main problems:
1) The admin panel listed decrypted data on the entries list, but encrypted data on the entry details page.
2) Some fields like radio and checkbox values, once encrypted, were too long and truncated in the db, thus impossible to decrypt.
3) Some fields were combined with other values, both encrypted (e.g. First + Last Name) and decrypted (e.g. map link for address fields) when returned for display on the entry details page.
I decided to store radio, checkbox and select values unencrypted as they are unlikely to contain sensitive data. Also, I needed to email some non-sensitive fields, and only encrypt certain forms.
Here's my solution, in case it's helpful to someone:
Posted 10 years ago on Saturday August 6, 2011 | Permalink