update crypt class