Home › Forums › Quform WordPress › Data Encryption for Form Data
- This topic has 2 replies, 2 voices, and was last updated 4 years, 10 months ago by Venom.
- AuthorPosts
- January 18, 2019 at 2:58 am #28255VenomParticipant
Hi Ally,
My client would like to encrypt all data fields submitted by user before it is saved in the database. Now I need to modify the following core files for this customization. is there a setting to do it? I would like to suggest to add two filters “quform_decrypt_field_value” and “quform_encrypt_field_value” for the customization . The searching function in the Forms->Entries would be disabled due to the data is encrypted.
Below is the change for Quform 2 version 2.6.3
—-For Encryption—–
Quform/library/Quform/Repository.php
Line 644 Add$value = apply_filters('quform_encrypt_field_value', $value);
————–For Decryption——
Quform/library/Quform/Admin/Page/Entries/Edit.php Line 137: Add$value = apply_filters('quform_decrypt_field_value', $value);
Quform/library/Quform/Admin/Page/Entries/View.php Line 127: Add
$value = apply_filters('quform_decrypt_field_value', $value);
Quform/library/Quform/Admin/Page/Entries/Exporter.php
Line 340 and Line 342 Add:$row[$col] = $value; $row[$col] = apply_filters('quform_decrypt_field_value', $row[$col]); } else { $row[$col] = isset($entry[$col]) ? $entry[$col] : ''; $row[$col] = apply_filters('quform_decrypt_field_value', $row[$col]);
Quform/library/Quform/Entry/Liste/Table..php
Line 620: Modify and Add$value = apply_filters('quform_decrypt_field_value', $this->columnElement($item, $columnName)); return $value;
Regards,
Venom
June 3, 2019 at 10:26 pm #29425AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
June 12, 2019 at 7:12 am #29466VenomParticipantHi Ally,
Thank you so much for the great enhancement. Please close the case.
Regards,
Venom
- AuthorPosts
- You must be logged in to reply to this topic.