Add encrypt method