Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,773 members, 7,809,982 topics. Date: Friday, 26 April 2024 at 06:15 PM

Cracking The Credit Card Algorithm - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Cracking The Credit Card Algorithm (1909 Views)

Thread For Nairaland Algorithm Questions / How Can I Make Payment For Any Udemy Course With My Credit Card? / Simple Algorithm Exercise (2) (3) (4)

(1) (Reply) (Go Down)

Cracking The Credit Card Algorithm by hobyner(m): 5:09am On Sep 17, 2017
Ever wondered how your bank, the Internet, ATM machines validate your cards? Well, it's not rocket science. It's pretty basic and now let me explain with an example.

Example Card Number: 4417 1234 5678 9113

The First Digit: this is the Major Industry Identifier. It designates the category of entity which issued the card.

• 1 & 2 are Airlines
• 3 is Travel and Entertainment
• 4 & 5 are Banking and Financial
• 6 is Merchandising and Banking
• 7 is Petroleum
• 8 is Telecommunication
• 9 is a National assignment

The First Six Digits: these are the Issuer Identification Number. It will identify the institution that issued the card.

Visa: 4xxxxx
MasterCard: 51xxxx – 55xxxx
Discover: 6011xx, 644xxx, 65xxxx
Amex: 34xxxx, 37xxxx

Cards can be looked up by their IIN. A card that starts with 376211 is a Singapore Airline Krisflyer American Express Gold Card. 529962 designates a pre-paid Much-Music MasterCard.

The Seventh & Following Digits: excluding the final digit, these are the persons account number. This leaves a trillion possible combinations.

The Final Digit: this is the check digit or checksum. It is used to validate the credit card number using the Luhn algorithm https://en.m.wikipedia.org/wiki/Luhn_algorithm .

How To Validate A Credit Card With Your Mind
• Take the credit card number(let's use the example above).
4417 1234 5678 9113
• Double every other digit from the right.
(4x2)4(1x2)7 (1x2)2(3x2)4 (5x2)6(7x2)8 (9x2)1(1x2)3
• Add these to the undoubled digits
8+4+2+7 + 2+2+6+4 + 1+0+6+1+4+8 + 1+8+1+2+3 = 70
• If the final sum is divisible by 10, then the credit card number is valid. If it's not divisible by 10, the number is invalid or fake. Try it and see.
Re: Cracking The Credit Card Algorithm by SFSNIPER(m): 6:19am On Sep 17, 2017
Maybe the guy below has something to say.
Re: Cracking The Credit Card Algorithm by Nobody: 6:57am On Sep 17, 2017
hobyner:
Ever wondered how your bank, the Internet, ATM machines validate your cards? Well, it's not rocket science. It's pretty basic and now let me explain with an example.

Example Card Number: 4417 1234 5678 9113

The First Digit: this is the Major Industry Identifier. It designates the category of entity which issued the card.

• 1 & 2 are Airlines
• 3 is Travel and Entertainment
• 4 & 5 are Banking and Financial
• 6 is Merchandising and Banking
• 7 is Petroleum
• 8 is Telecommunication
• 9 is a National assignment

The First Six Digits: these are the Issuer Identification Number. It will identify the institution that issued the card.

Visa: 4xxxxx
MasterCard: 51xxxx – 55xxxx
Discover: 6011xx, 644xxx, 65xxxx
Amex: 34xxxx, 37xxxx

Cards can be looked up by their IIN. A card that starts with 376211 is a Singapore Airline Krisflyer American Express Gold Card. 529962 designates a pre-paid Much-Music MasterCard.

The Seventh & Following Digits: excluding the final digit, these are the persons account number. This leaves a trillion possible combinations.

The Final Digit: this is the check digit or checksum. It is used to validate the credit card number using the Luhn algorithm https://en.m.wikipedia.org/wiki/Luhn_algorithm .

How To Validate A Credit Card With Your Mind
• Take the credit card number(let's use the example above).
4417 1234 5678 9113
• Double every other digit from the right.
(4x2)4(1x2)7 (1x2)2(3x2)4 (5x2)6(7x2)8 (9x2)1(1x2)3
• Add these to the undoubled digits
8+4+2+7 + 2+2+6+4 + 1+0+6+1+4+8 + 1+8+1+2+3 = 70
• If the final sum is divisible by 10, then the credit card number is valid. If it's not divisible by 10, the number is invalid or fake. Try it and see.

This is lovely.
Please where can I read up more on this ?

1 Like

Re: Cracking The Credit Card Algorithm by calberian: 7:23am On Sep 17, 2017
Cool

1 Like

Re: Cracking The Credit Card Algorithm by SilverG33k(m): 9:23pm On Sep 18, 2017
Page saved for future reference...

Well I don't need to cram these things, my payment processor (PayStack) validates card numbers, Security and expiry date right from my android app before initializing payment

1 Like

Re: Cracking The Credit Card Algorithm by samueltoski: 9:43pm On Sep 18, 2017
SilverG33k:
Page saved for future reference...

Well I don't need to cram these things, my payment processor (PayStack) validates card numbers, Security and expiry date right from my android app before initializing payment
Pls can I how can I use paystack without a register company

1 Like

Re: Cracking The Credit Card Algorithm by SilverG33k(m): 12:30am On Sep 19, 2017
samueltoski:

Pls can I how can I use paystack without a register company
Sorry, you just have to register either a business name or a company.... Business name cost 11000naira only and you can DIY.

You'll need a lot more money to register a company and also a lawyer for company registration.

1 Like

Re: Cracking The Credit Card Algorithm by hobyner(m): 9:02am On Sep 21, 2017
Guitarlife:


This is lovely.
Please where can I read up more on this ?
Original post and similar posts are on my site https://drag.com.ng/2017/09/21/cracking-the-credit-card-code/

(1) (Reply)

Java/Java Mobile Developers in the House / Looking For Android App Development Company / I "Tried" To Clone This Website From Scratch With HTML /CSS.

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 17
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.