|
|
How do Credit Card Numbers Work?I mistyped a digit on my credit card last time I was shopping online and the site promptly told me the card number was invalid. But there's no way it had time to check with the bank. Is there some secret coding system for credit card numbers that they used, and if so, what's the scoop? You're right that the account number shown on your credit cards turns out to be quite a bit more complicated and sophisticated than you may think. It's not, in fact, just a random sequence of digits, but rather a smart way to have tons of different card numbers available while slowing down thieves who would try to guess credit card number and expiration pairs. To explain, I'm going to use a fictitious card number, but I would encourage you to pull your own credit card out of your purse or wallet and play along at home... The first digit of a credit card number is known as its Major Industry Identifier, and the possible values give you insight into who issues credit cards for Visa and Mastercard:
When I look at the cards in my wallet, for example, my Paypal MasterCard starts with a "5", while my Amazon.com Visa starts with a "4". The next five digits plus the very first digit make up the Issuer Identification Number, the bank or other institution that issued the card. This means that if I compare cards with someone else who has an Amazon Visa, for example, we should both find that it has the same IIN, which starts with 4640.
The last digit is perhaps the most interesting, however, it's the checksum and it's a bit tricky to calculate but here's basically how it works: Take your credit card number and double every other digit, starting on the right. For a sample credit card number of 4417 1234 5678 9113, that would mean that we're going to double every other digit and skip the intervening, like this: (4*2) [4] (1*2) [7] (1*2) [2] (3*2) [4] (5*2) [6] (7*2) [8] (9*2) [1] (1*2) [3] This yields: Any two-digit number becomes the sum of its digits, so 10 = 1 + 0, 14 = 1 + 4, 18 = 1 + 8, producing: 8 _ 2 _ 2 _ 6 _ 1 _ 5 _ 9 _ 2 _ Now we need to fold back in the original digits that we'd skipped (I said it's complicated!) and sum up each quad: 8+4+2+7 2+2+6+4 1+6+5+8 9+1+2+3 Total value = 70 (add it up, you'll see). This sum value doesn't need to equal the last digit on the card, however, that's just included to ensure that the digits all add up to a number that's divisible by 10. If the last digit weren't a 3, for example, but a 5, then we'd have ended up with 72, which would demonstrate that it's not a valid credit card number. Cool, eh? I imagine that the shopping site you used actually had that complicated math formula built in to the shopping cart, so it could instantly recognize that the checksum wasn't divisible by ten and therefore you had to either have a fake card or a card with a typo somewhere in the entry. Hope that's helpful and interesting!
More Useful d) None of the Above Articles:
✔ What's the most popular Halloween candy?
It's Halloween, All Hallow's Eve, and in the United States, at least, that means it's time for a strange custom that children throughout...
✔ Review: Sony NEX-5N Digital CameraThis is a guest post by professional photographer Paul M. Bowers... I was born and raised in the briar patch of commercial photography-...
✔ How do other countries celebrate Independence Day?Hello Mr. Taylor. The other kids in my class say that every country celebrates Independence Day on July 4th and that it's a...
✔ What is a ponzi scheme?Dave, a friend of mine listened politely to my explanation of how a multi-tiered marketing system I've signed up for works, then told...
✔ Update firmware on my Panasonic Blu-Ray DVD player?I have a Panasonic DMP-BDT320 blu-ray DVD player and it's starting to report that I need a 'firmware' update or upgrade. I have...
Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help
right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
Categorized:
Auctions and Online Shopping
,
d) None of the Above
(Article 9770,
Written by Dave Taylor)
Tagged: amazon.com, banking, credit cards, fraud, paypal, shopping Previous: Best practices for extending battery life on Windows PC laptops Next: How can I have iTunes automatically start when I reboot? Reader Comments To Date: 9Bert Padilla said, on January 25, 2011 6:03 PM:
Wow! I tried it with my two cards and the 16 numbers, in which I doubled every other digit as you instructed, it indeed equals to a sum divisible by ten (10). But I'm wondering if this is adopted internationally? I mean will this work in all types of credit cards? Dave Taylor said, on January 25, 2011 10:04 PM:
Not sure about international credit cards, but I would be unsurprised to find that it's an int'l standard... jw said, on January 26, 2011 3:01 PM:
Very nice article. I've always wondered that as well. Thank you RonF said, on February 1, 2011 1:24 PM:
Cool stuff Dave, I knew about the leading number indicating which type of card it was, 4=visa, 5=mastercard 6=discover/storecards but I didn't know about the checksum, cool stuff! Stephen said, on February 2, 2011 6:42 AM:
I think I'm missing something. You say to "Start from the right" but you actually seem to be working from the left? ie starting with 44 Enzo Gorlami said, on February 24, 2011 8:34 AM:
good article interesting stuff - but, where did you get all of this information? alvin said, on November 25, 2012 5:49 AM:
dave give me a credirt card code can? kwame said, on April 22, 2013 8:09 PM:
Hi good morning how are you i need credit card
I do have a comment, now that you mention it!Check This Out Too... |
Recent Entries
Look for Answers
Recommended
All Our Categories
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and Blogging Building Web Site Traffic Business and Management Computer and Internet Basics d) None of the Above Facebook Help Google Gmail Help Google Plus Help HTML, JavaScript and Web Site Programming Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Kindle Fire Help Mac OS X Help Pay Per Click (PPC) Advertising Pinterest Help Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help Find Me on Google+ ADT on G+ |
One thing you didn't say (but you implied) is that if it starts with a 4, it is always a Visa and if it starts with a 5, it is always a Mastercard. This is why more sophisticated shopping carts don't ask for the type of card...it is indicated by the number itself. (I don't have an AMEX or Discover, but apparently, they are 3 and 6 respectively)