A simple trait to encrypt attributes before saving to the database and to decrypt attributes before using their values.