Md5 encrypted field

Is there a way i can create an md5 encrypted field using custom scripts?