How to encrypt a colunn as MD5(passwort) after insert

QuestionsHow to encrypt a colunn as MD5(passwort) after insert
selectcase.biz asked 5 years ago

Hello,

Now I use the standard:

——————-
$col = array();
$col["title"] = ("<i class="fa fa-key"> Passwort");
$col ["name"] = ("columnpassword");
$col["editable"] = true ;
$col["editoptions"] = array("size"=>20, "defaultValue"=>'myfixpassword');
$cols[] = $col;

——————-

But I like to save the default value from another column, something like:

——————-
..
$col["editoptions"] = array("size"=>20, "defaultValue"=>'{codefromthercolumn}');
..
——————-

or within the..

$g->select_command =
"
select md5(codefromthercolumn) codefromthercolumn from mytable
"

——————-

How is this possible? Thanx!

1 Answers
Abu Ghufran answered 5 years ago

Hello,

Please refer:

https://www.gridphp.com/support/questions/md5-passwords-on-grid/
https://www.gridphp.com/support/questions/edit-password/

If you want to display md5 password field, then you can use md5 function in sql.

Your Answer

18 + 10 =

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?