Is it possible to work in the encrypted grid with public or private key?

QuestionsIs it possible to work in the encrypted grid with public or private key?
zahira abdala asked 2 years ago

Hi everyone, I want to know if is it possible possible to work in the encrypted grid with public or private key?
If possible, how would it be?

Thank you

7 Answers
Afnan answered 2 years ago

Hello,

Please tell some scenario or sample demo how you wish to implement keys in datagrid.

zahira abdala answered 2 years ago

I want to use encryption when writing a field.
That is possible?

Abu Ghufran Staff answered 2 years ago

This is doable using on_update event handler where you can write your own php code. https://www.gridphp.com/docs/grid-events/

It’s supported in full version.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
zahira abdala answered 2 years ago

Thank you very much, I had already reviewd that bibliography, but my question is, if it is possible to show the content in the grid but with being encrypted.




Abu answered 2 years ago

Yes, You can use on_data_display filter mentioned in the demo of custom events and do the field encryption in that function.

zahira abdala answered 2 years ago

My question is, if it is possible to show decrypted information in the grid for certain users

Abu Ghufran Staff answered 2 years ago

Please refer this section of documentation.

https://www.gridphp.com/docs/column-options/#conditional-content

For extended conditional data, you can also have callback function, that will allow you to display based on row data. You can use decryption there. For e.g.

$col["on_data_display"] = array("display_keyword","");
function display_keyword($data)
{
    $kw = $data["keyword_name"];
    $numKeywords = count(explode("\n",$pass));
    if ($numKeywords > 3)
           return $numKeywords." Keywords";
    else
    {
           $pass = str_replace("+"," ",$pass);
           return $pass;
    }
}
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

13 + 12 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?