Store and Encrypt Contact Form 7 Submissions in Database?

I have an additional security requirement (in addition to SSL) and I'm looking for a method (either a plugin or custom solution) of how to encrypt and store submissions from Contact Form 7 in the database. For example there are plugins such as Flamingo that allow the submissions to to be stored in the DB, there are fore other form platforms such as Gravitate Encryption that encrypt the submissions in the DB. Is there an option or method to encrypt CF7 submission data within the SQL database?

Topic encryption plugin-contact-form-7 forms database Wordpress

Category Web


As @kero said, use a CF7 hook. I'd use the wpcf7_before_send_mail hook. Grab data from the CF7 form object's fields, and use those values to store data.

I wrote a post to myself on how to get data from the CF7 form object here: http://securitydawg.com/changing-contact-form-7-with-the-wpcf7_before_send_mail-hook/ . You could use that to get started, just insert your code/function that reads the fields from the CF7 object and then store that data.

Good luck!

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.