• Hi,

    I have used your awesome plugin to work with Gravity Forms, everything works fine, thanks !

    except for one thing,
    I need to set a search criteria for GFAPI::get_entries and unfortunately your plugin doesnot work here,

    I mean this doesn’t return anything:

    $search_criteria["field_filters"][] = array( 'key' => "6", 'value' => encrypt_this($current_user->user_email) );

    here is encrypt_this :

    function encrypt_this($value_to_encrypt){
        $encrypted_value = $value_to_encrypt;
        if(class_exists('GDS_Encryption_Class'))
        {
            $encrypted_value = GDS_Encryption_Class::encrypt($value_to_encrypt);
        }
        return $encrypted_value;
    }

    while of course this work:

    $search_criteria["field_filters"][] = array( 'key' => "6", 'value' => 'enx2:loesFFld0WeJP/g2y+/UHAA9nObVFIyPV5oglm6aCbTHZt0zgoYP4s7NVy731gJTpZBVLnywI0W9q79HAHENho' );

    the value “enx2:…” is copied directly from the database
    is there something I’m missing ?!
    Thanks in advance

    https://www.ads-software.com/plugins/gravitate-encryption/

Viewing 1 replies (of 1 total)
  • Plugin Author Gravitate

    (@gravitate)

    Yeah,
    Unfortunately since the data is all encrypted the search does not work.

    I like where you are going with the filtering on the search parameters.
    Can you confirm that your “encrypt_this” function is returning the correct value. It might be possible that your function is running before GDS_Encryption_Class has been defined.

Viewing 1 replies (of 1 total)
  • The topic ‘difference between encryption function and Gravity Field encryptions’ is closed to new replies.