MIFARE Classic standard keys

假如想象 提交于 2021-01-28 03:10:45

问题


I have two NFC tags with different keys for their sectors:

  • Tag 1: This tag contains an NDEF message.

    • Sector 0 = A0:A1:A2:A3:A4:A5 for key A
    • Sector 1 to 15 = D3:F7:D3:F7:D3:F7 for key A
  • Tag 2: No NDEF data on this tag

    • All sectors = FF:FF:FF:FF:FF:FF for key A and B

Are there standard keys for MIFARE Classic tags according NDEF/non-NDEF?


回答1:


Correct.

The application note MIFARE Classic as NFC Type MIFARE Classic Tag defines how a MIFARE Classic tag can be used to store NDEF data. This application note defines that all sectors containing NDEF data must be readable with a key A with the value D3 F7 D3 F7 D3 F7. Consequently, all data sectors (sector >= 1) are reable with key A = D3 F7 D3 F7 D3 F7.

Moreover, the tag must contain a MIFARE application directory where the data sectors are marked as containing the NDEF application. The application note MIFARE Application Directory (MAD) defines the structure of the MAD and it also requires that the MAD sector(s) are readable with a key A with the value A0 A1 A2 A3 A4 A5. Consequently, the MAD sector (sector 0) is reable with key A = A0 A1 A2 A3 A4 A5.

Finally, the default transport configuration for MIFARE Classic tags (i.e. when they ship from factory) is all sectors readble and writable with key A = FF FF FF FF FF FF.



来源:https://stackoverflow.com/questions/56225136/mifare-classic-standard-keys

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!