crypt is a one-way encryption. You must use a different way to secure credit-card numbers. (How about choosing a strong password for the database and storing the numbers plain?)