Credit Card Encryption And Decryption Php Using Mcrypt Module
This is basically not a tutorial. Here is a ready-made code-piece you can use in your program if you need to store credit card numbers in your database while processing it for payments. If you ever need to store credit card numbers in your database, it should be encrypted before inserting in to the database. PHP has a library called Mcrypt which makes encryption/decryption extremely easy to implement. Mcrypt supports a wide variety of encryption mode and algorithms depending on your needs.
http://www.articlesbase.com/programming-articles/credit-card-encryption-and-decryption-php-using-mcrypt-module-1799779.html