C# ASP.NET SQL SERVER
  • Fri
    25
    Jul 08

    Are there enough credit card numbers?

    I was wondering if the 16 digits that most credit cards have (VISA and Mastercard et al) if you don't include American Express' 13 digit cards were enough for the world or if we'd run out of digits at some point. If I've done my calculations correctly and based on my assumption that there are 7 billion...

    Continue reading "Are there enough credit card numbers?"

  • Fri
    25
    Jul 08

    Casting Out Nines

    I'm working on a project at the moment that involves the verification of credit card numbers. This has led to running checksums on the numbers to validate them including Luhn's algorithm. Simply stated, Luhn's algorithm doubles every second digit (starting from the right) and then adds together all of...

    Continue reading "Casting Out Nines"