fixed crypt() generation