linux - SC/OPENSC 如何读写

标签 linux smartcard opensc

我正在整理如何实现以下目标,我想在项目中使用智能卡或存储卡。这些卡应由标准化读卡器(例如 ACR38)读取。当它们被计算机(命令行或软件(处理或p5js或类似)读取时,应该会弹出一个窗口,显示卡上的内容是图片和文本。当我使用我的常规ID由我的E-id软件读取时有点类似。

https://www.pc-helpforum.be/uploads/monthly_2016_11/viewer-read-eid-ok.png.5cab04693529e36cc130dbd125c70053.png

目前我拥有的卡是这张SLE4428(在供应商的底部说明中) 这些还没有数据,是空白购买的

=> datasheet

我找到但不知道是否适合我的项目以及具体如何使用的软件如下。

我在搜索 SC 卡软件时找到的开源工具(不知道如何使用它们。)

https://linux.die.net/man/1/opensc-tool

https://linux.die.net/man/1/opensc-explorer

我查看了我的智能卡读卡器,发现 http://www.acr38u.com/ 是一个平台,但必须付费,我无法在 Linux 或苹果上找到此软件。 我再次在这里找到了datasheet使用十六进制代码连接到卡,但仍然不知道如何物理连接到卡。​​

该站点显示了工作 shell 的许多要点,但我找不到它的安装程序。 opendsc

最后this是最有希望的,我已经联系了它的制造商。但是安装陷入了制作过程中(我已经搜索过了,但还不是解决方案,已经研究了一个星期了,所以这篇文章,也许社区可以帮助提供另一种外观)

这是供应商方面(Aliexpress)的解释,比较具体。虽然我不知道在哪里输入这些十六进制代码以从卡中写入或读取。 (有一个软件,但它是Windows(如果有人可以说,这是解决我项目核心问题的方法,那么我会尝试通过这种方式让Windows电脑来处理它))

ISO7816 SLE 4442 Chip PVC Contact Smart Card (0.8* 85.5 * 54mm)

If you need write the 4442 cards,you should buy the contact smart reader writer!! 4442 cards not support 13.56mhz rfid writer!!!
NOTE:There is NO magnetic strip behind the card.
Graphics Quality Cards For All Photo ID Card Printers Including
DataCard, Zebra, Fargo, Evolis, Magicard, NBS & etc.
(These Cards Will Not Work In Inkjet Printers)
If you need 100pcs 4442 cards,pls check the links below:
[https://www.aliexpress.com/store/product/100-pcs-lot-ISO7816-RFID-Contact-SLE-4442-Chip-PVC-Smart-Card/516120_32425491077.html?spm=2114.12010608.0.0.R0bzFx][1]


Features:
Standard:ISO7816
Product Chip:SLE4442
Color:White
Dimension: L 85.5 x W 54 x H 0.80±0.04mm
256 × 8-bit EEPROM organization
32 × 1-bit organization of protection memory
erase cycles more than 100,000 times
Data retention for minimum of ten years
Default passwords: FFFFFF
3 bytes for error counter and card secret code area
1,Write protected area (first 32 bytes) of each byte can be individually write protected, After write,the data can't be changed.
2, Before checking the password, all the data can be read, if necessary,you could encryption data.
3, After confirm password is correct,the data could be write or modify.
4, The 3 bytes of user passwords, after confirm is correct,it could be change.
5, The password error counter, the initial value of 3, check the error code 1, then subtract 1, if the counter value is 0, the card is automatically locked, the data just read out, no longer change can no longer be password verification; if zero, the one time password verification is correct, restore to the initial value.
6, The byte address 0-5,6-7 factory prior written by the manufacturers can not be changed.

这个问题的具体内容在于

A:我怎样才能在linux或mac上实现一个工作环境(第一个)来读取和写入sc卡上的数据(我拥有的那个或!B:一个可行的替代方案) C:创建一个查看器程序或webapp等,以在读取SC卡时查看或路由数据。 (这将是一个有效的问题,如果我在哪里选择基于 Windows 的现有程序,我认为)

最佳答案

因为这不是特定于代码的,但我仍然希望有相同问题的人能够看到此页面,向他们展示大量的脚本以及处理此或类似 SC 项目的方法。

这个guy对 OpenSC 了解很多!

关于linux - SC/OPENSC 如何读写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47382669/

相关文章:

regex - 如何使用sed根据每场比赛替换每场比赛?

linux - cron 调度程序如何 cd 到某个位置并执行 shell 脚本

linux - 如何安装和配置邮件服务器 debian

java - 智能卡开发

java - 始终询问密码 KeyStore PKCS11

c++ - 使用 libp11 和 pkcs11-engine 读取私钥的区别

linux - 使用 foreach 和 awk 命令将 csh 脚本转换为 bash 脚本

使用 AES 的 Java 卡加密返回 6F00

openssl - 获取 OpenSSL 的 OpenSC PKCS11 引擎日志

Openssl、engine_pkcs11、libp11/OpenSC