Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.
I'm building a site where I will be passing credit card information to a clearing house, but I want to retain the last four digits of the credit card number in the database and associate it with the order.
Does any more experienced in php than myself know of the best way to do this? Should I just use string functions to replace the digits?
Has anyone already created a function to validate the cc number and then replace all the digits except the last four with asterisks?