读取EMV卡的公共数据 [英] Reading public data of EMV card

查看:94
本文介绍了读取EMV卡的公共数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说我想阅读EMV卡的 public 元素。
我将列出一些我认为涉及的步骤。

Say I want to read public elements of EMV card. I will list some steps which I think are involved.

1. First, select application
   In order to select application we must: 
   (1) find out AID  of application using PSE (if present)
   (2) Try existing AID list.

现在,想象一下我已经使用上述两种方法之一成功选择了应用程序。

Now, imagine I successfully selected application using one of the two methods above.

我的问题是:我必须进一步采取哪些步骤才能阅读EMV卡的 public 元素
?更确切地说:我是否需要提供带有PDOL的卡并获得AIP和AFL
http://www.openscdp.org/scripts/tutorial/emv/initiateapplicationprocess.html
使用GET PROCESSING OPTIONS并然后读取记录?

My question is: What steps I must undertake further to read the public elements of EMV card? More precisely: Do I need to provide card with PDOL and get AIP and AFL (http://www.openscdp.org/scripts/tutorial/emv/initiateapplicationprocess.html) using GET PROCESSING OPTIONS and then read out the records?

或者在选择了我最初提到的应用程序之后,我可以直接进行如下操作(读出记录):
链接到源代码

Or after selecting application like I mentioned initially, I can directly proceed with something like this (reading out records): link to source?

推荐答案

有关支付系统的EMV规范可在 http://www.com中公开获得。 emvco.com/ 。这些规范包含详细的过程和流程,符合EMV的支付终端如何从卡中读取该数据,因此您只需实施这些规范的相关部分即可。

The EMV specifications for payment systems are publicly available at http://www.emvco.com/. These specifications contain details processes and flows how EMV compliant payment terminsal can read that data from a card, so you could simply implement the relevant parts of these specifications.

总而言之,


  1. 查找应用程序(按照您的指示)通常需要执行的操作。

  2. 通过其AID选择应用程序。

  3. 使用READ RECORD命令读取数据文件(通常前几个文件的前几个记录包含有趣的数据)。在到目前为止我尝试过的卡上,不需要首先发出GET PROCESSING OPTIONS命令,但是您只能通过发出GPO命令并评估卡发送的AFL来获取与交易相关的实际文件/记录的列表。但是您仍然可以使用蛮力的方法来查找与您相关的记录。

  4. 使用GET DATA命令读取数据元素(当然,您需要知道要查找的数据元素)

  1. Find the application (as you indicated).
  2. Select the application by its AID.
  3. Read the data files using READ RECORD commands (usually the first few records of the first few files contain the interesting data). On the cards I tried so far, there is no requirement to issue a GET PROCESSING OPTIONS command first, but you can only get a list of actual files/records relevant to transactions by issuing the GPO command and evaluationg the AFL sent by the card. But you can still use a brute-force approch to find the records relevant to you.
  4. Read the data elements using GET DATA commands (of course you need to know what data elements you are looking for).

这篇关于读取EMV卡的公共数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆