4

I would like to know if it's possible to get a Debit/Credit Card number from a SmartCard, I' trying to get it using a SmartCard reader with the communication protocol PC/SC,CCID and the card interface ISO/IEC 7816-1/2/3 SmartCard,MicroSD interface ISO 7816-4 SmartCard.

So far I just get the type of the card inserted (Visa, Mastercard, Maestro, etc.)

Thanks!

2
  • Have you checked the EMV specifications? Feb 14, 2013 at 0:15
  • yes, but I don't find anything related to that! :/
    – JuanD
    Feb 14, 2013 at 3:34

2 Answers 2

10

First of all let me tell you that there isn't a easy way.

You have to look into the EMV documentation, this tutorial is pretty good.

http://www.openscdp.org/scripts/tutorial/emv/index.html

All the information in a Chip Card is in bytes, mostly coded in TLV. The card generally has multiple records where the information is stored, you have to loop that records to find the tag "5a" which is the one of the PAN.

Hope it helps.

4

The card number that you are talking about is the PAN = Primary Account Number

This data is contained in Track 1 and Track 2, as exposed here.

You can retrieve this data from chip via APDU commands. There is a step by setp on how to do that here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.