Possible to save form data encrypted using an external form?

Permalink
We have a few existing vanilla html forms that need to be rebuilt for use as external_forms. Some have some sensitive info that the client wants to be encrypted in the db.

We would like to set the saving of these form fields to be encrypted in the db, and then in the
DASHBOARD > REPORTS > FORM RESULTS
would like these fields decrypted for viewing...

I see that there are some c5 functions for encrypting, but not sure how I would add this to the form processing or even where that might be.

Can anyone give a high level overview of how they might achieve this? Many thanks!

adavis
 
Mnkras replied on at Permalink Reply
Mnkras
$enc = Loader::helper('encryption');
$enc->encrypt('blah');
that simple
vadnalrakesh replied on at Permalink Reply
Could you please explain in detail?
coolguru4ever replied on at Permalink Reply
coolguru4ever
Hi,
I have a similar problem. But the data just needs to be saved to the database from the External form. And then displayed in the Dashboard -> Reports -> Form Results section. No encryption is required.

Can anyone tell me how to save the data from the External form to the database and show it in the Form Results section?

I have created an external form in the External Form folder under Blocks/Forms in the application setup. And have a function in the controller to fetch the data when the form is submitted. The data is being submitted from the form to the controller. But I am stuck on what all tables are required to be updated?

Thanks in advance for any help.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.