crypt class