在 phone Android 和 Ios 内编程 NFC 卡

programm NFC Card inside the phone Android and Ios

我们的工作中有一台打印机,这台打印机有卡 reader 来识别使用卡打印的用户,现在我们有一个应用程序 ios 和 android .我们想用我们的应用程序替换卡,我可以让应用程序具有像卡一样的功能我的意思是用户可以去卡扫描器并使用 phone 中的 nfc,我可以像 QR 一样吗代码,

所以基本上应用程序会在应用程序内部生成一张卡片,打印机中的卡片扫描仪可以从我们的 phone 读取它,这对于 ios 和 android

目前无法在 iOS 上进行主机卡仿真 (HCE)。 在 Android 上是可能的,我没有 Android 开发经验,所以除了向您指出 the documentation.[= 之外,我无法在编程方面提供任何帮助。 15=]

注意:它对 copying/cloning 任意卡有限制。

this answer by Michael Roland

  1. Many access control systems use the card ID (UID) to identify the card (or even to make an access control desicion!). With Android HCE, an app cannot set the emulated card ID.

  2. Many access control systems use cards/acces tokes that are not based on ISO 14443-4 (ISO-DEP) + ISO 7816-4 smartcard protocol. With Android HCE an app can only emulate smartcard applications that use ISO 7816-4 APDUs and application structure.

  3. Even if the access control system does not use the card ID and uses an ISO 7816-4 smartcard application, it is very likely that the card contains some cryptographic secret (secret key) that cannot be extracted from the card through smartcard commands.

另一个值得考虑的选项是为 Android 和 iOS 使用支持 NFC 的钱包通行证。它有点复杂,但它的最终产品非常相似。在 PassNinja,我们正在努力简化创建、分发和读取 NFC 手机钱包通行证的过程。

免责声明:我为 PassNinja 背后的公司 Flomio 工作。