Data Encryption for Form Data

Home Forums Quform WordPress Data Encryption for Form Data

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28255
    Venom
    Participant

    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

    #29425
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #29466
    Venom
    Participant

    Hi Ally,

    Thank you so much for the great enhancement. Please close the case.

    Regards,

    Venom

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy