difference between encryption function and Gravity Field encryptions
-
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 forGFAPI::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
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘difference between encryption function and Gravity Field encryptions’ is closed to new replies.