[eluser]gowrav vishwakarma[/eluser]
I have read the validation rules but what If i want to save a fields value in encrypted format but it should be displayed in normal way.
like
Code:
$u=new User();
$u->Name='name';
$u->Password='password'; // From validation rule I want it to encrypt
$u->save();
echo $u->Password; // Automatically decrypted from either same encrypt function (some way is needed to knwo weather we are getting or settting) or by another function for get time applicable