Mifare Classic Personalization

Forum / MIFARE SDK / Mifare Classic Personalization

  • 10. November 2014 at 5:03
    I am trying to personalize Mifare Classic 4K with SDK. I followed steps as,


    MFClassic.personalize(sectorNo, appId, key);

    by first attempt of executing this functions it works fine,then I write data on particular sector, read that sector, it works fine. but when I try to format, personalize and authenticate that sector again with same key as previous, it failed to authenticate, says wrong appId.
    Does it mean that I can personalize sector only once?
    I didn't find any function which will reset all card to factory reset.
    + 0  |  - 0

    Re: Mifare Classic Personalization

    24. November 2014 at 8:15
    Hi ,

    you can personalize a sector multiple times.

    After first time personalize, if you want to again personalize the same sector follow the below steps by keeping the key and appID unchanged.

    public void onClassicCardDetected(final MFClassic objMFCCard) {
    classic = objMFCCard;
    byte sectorNo = 2;
    byte[] key = { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF,
    (byte) 0xFF, (byte) 0xFF }; (factory default key)
    byte[] appId = new byte[] { 0x11, 0x11, 0x11 }; //should be 3 bytes
    try {
    classic.format(sectorNo, key);
    classic.personalize(sectorNo, appId, key);
    classic.authenticate(sectorNo, appId, key);
    } catch (Throwable t) {

    Go through the samplelite application source code for more details.

    + 0  |  - 0

    Re: Mifare Classic Personalization

    26. November 2014 at 8:50
    Please try with latest MIFARE SDK Lite - v02.00.00.1446 version.

    + 0  |  - 0
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.