APDU命令来获取智能卡的序列号 [英] APDU command to get the serial number of a smart card

查看:1172
本文介绍了APDU命令来获取智能卡的序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能使用APDU命令智能卡的序列号?我曾尝试使用 winscard.dll 的SCardGetAttrib功能,没有运气进行查询
,我被告知要使用APDU命令要做到这一点,因为有没有标准的方式来获得的序列号。问题是,我想不出什么类型我的智能卡!所以我看着很少流行的智能卡制造商,没有运气的文件找到一种方式来获得的序列号!

How can I get the serial number of a smart card using APDU command? I have tried to query it by using SCardGetAttrib function of winscard.dll with no luck, I've been told to use an APDU command to do that since there is no standard way to get the serial number. The problem is that I can't figure out what type my smart cards are! So I have looked into the documents of few of popular smart card manufacturers with no luck to find a way to get the serial number!!

我的读卡器是ACR88。

My card reader is ACR88.

推荐答案

在A0下面的命令,可能需要00或别的东西(下面的代码工作的SIM卡上):

In the commands below the A0 might need to be 00 or something else (the code below works on a SIM card) :

选择MF:

=> A0A40000023F00 
<= 9F16

选择EFiccid:

=> A0A40000022FE2 
<= 9F0F



READ BINARY:

READ BINARY :

=> A0B000000A 
<= 984310011823020084F99000

您ICCID被交换并具有LUHN检查(984310011823020084F9 = > 8934011081322000489)。

Your ICCID is swapped and has a luhn check (984310011823020084F9 => 8934011081322000489).

这篇关于APDU命令来获取智能卡的序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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