Reply To: Authentication Key change for MIFARE Classic 1K

Forum MIFARE general topics and applications Authentication Key change for MIFARE Classic 1K Reply To: Authentication Key change for MIFARE Classic 1K

Re: Authentication Key change for MIFARE Classic 1K

22. July 2019 at 8:58
Hi Ankita,

You must separate the procedure of authenticate and reading/writing to a MIFARE Classic from the procedure of communicate to the PN532-C NFC reader.

If you want to read or write to a block of the MIFARE Classic you must authenticate to the sector (use any block number of the target sector) before you can read or write. Of course, you can also write to the sector trailer which contains the keys A and B. Be careful here, if you write invalid bits to the access condition bytes, you can make the entire sector inaccessible!

MIFARE Classic datasheet:
https://www.nxp.com/docs/en/data-sheet/MF1S70YYX_V1.pdf

The PN532C contains an 80C51 microcontroller. But this is transparent for you. You are connected via SPI or I2C bus and communicate with the reader. I recommend reading the user manual of the PN532.

Datasheet:
https://www.nxp.com/docs/en/nxp/data-sheets/PN532_C1.pdf

PN532 Application Note:
https://www.nxp.com/docs/en/nxp/application-notes/AN133910.pdf

PN532 User Manual:
https://www.nxp.com/docs/en/user-guide/141520.pdf

The TapLinx team
+ 0  |  - 0