Modify the crypt function