updated crypt.c