简体   繁体   English

从 EMV 响应中获取数据

[英]Get data from EMV response

I tried to translate an EMV response of my card details.我试图翻译我的卡详细信息的 EMV 响应。 For that, I used为此,我用

https://github.com/binaryfoo/emv-bertlv to get data. https://github.com/binaryfoo/emv-bertlv获取数据。

below you can see the output:下面你可以看到 output:

[6F (FCI template)] 8407A0000000031010A52F500B56495341204352454449548701015F...1A02
      [84 (dedicated file name)] A0000000031010
      [A5 (FCI proprietary template)] 500B56495341204352454449548701015F2D086573656E707466729F...1A02
        [50 (application label)] VISA CREDIT
        [87 (application priority indicator)] 01
        [5F2D (language preference)] esenptfr
        [9F12 (application preferred name)] CREDITO
        [9F11 (issuer code table index)] 01
        [9F38 (PDOL - Processing data object list)] 9F1A02
I/System.out:       9F1A (terminal country code) 2 bytes 

How can I get application label value using this output?如何使用此 output 获取应用程序 label 值?

If I understand your question correctly, you want to understand how they parsed your string to that form.如果我正确理解您的问题,您想了解他们如何将您的字符串解析为该形式。 For that, you need to understand EMV parsing following TLV (Tag Length(in hex) and Value ) format.为此,您需要了解遵循 TLV(标签长度(十六进制)和值)格式的 EMV 解析。 Sometimes tags are grouped under a template.有时标签在模板下分组。 Follow this answer for more details where I have explained in further detail with references from EMVCo specs.请按照此答案了解更多详细信息,其中我已通过 EMVCo 规范的参考资料进行了更详细的解释。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM