Sponsorship

40% off your First Order with GoDaddy.com!

Nov 18, 2009

Ruby: Mask all Credit Card Digits but Last Four


Mask all the credit card number digits with asterisks except the last 4, for security purposes. The function works for all types of cards (Visa, MasterCard, Amex, Discovery, etc.)

No comments:

Post a Comment