I tried to encrypt particular field in my table using BEFORE RECORD ADDED : i use this script to encrypt some confidential information such as credit card number..
$values["MyField"] = md5($values["MyField"]);
and it works !!!! is it possible to decode it in normal text in the list or view page?