MIFARE Card Authentication Failed: Troubleshooting

Why does MIFARE authentication fail? On an ACS reader, reading a MIFARE Classic block takes three commands that must each return 90 00: Load Key (FF 82), General Authenticate (FF 86) and Read Binary (FF B0). A failure, usually 63 00, at the authenticate step has eight common causes: the wrong key, key A used where key B is needed (or the reverse), a key location that does not match the one loaded, the wrong block or access bits that forbid the operation, a card that is not a MIFARE Classic, a card that moved, a key that is no longer loaded after the reader was reset, or a reader in another mode. First find which of the three steps failed, then check the causes in the order below.

This page is the troubleshooting guide for that one symptom with ACS readers such as the ACR1252U, ACR1552U and ACR122U. The commands themselves are explained in how to read MIFARE Classic cards in C#, and the test procedure in our MIFARE card test guide; this page links to them instead of repeating them. BSD Infotech is an independent ACS supplier and integrator, not the manufacturer.

Scope: your own cards, factory keys or your own keys

Everything here is for cards you own or are authorised to manage, with the factory key FF FF FF FF FF FF or keys your own system issued. If the card has a key you do not know, ask the card issuer. This page does not cover anything else, and BSD does not help with finding, guessing or recovering keys.

Not yet tested by BSD on hardware. Commands and replies come from the ACS reader manuals and PC/SC Part 3 (see Sources). Which status word each ACS model returns for each cause has not yet been recorded by BSD; the planned tests are in the report for this page and on the C# tutorial's test list.

MIFARE Classic cards do not understand ISO 7816-4 commands. The ACS reader receives PC/SC class FF commands and runs the MIFARE protocol with the card itself. The sequence for block 04 (sector 1) with the factory key:

StepBytesTalks to the card?What has to be right
1. Load KeyFF 82 00 00 06 FF FF FF FF FF FFNo. The key goes into the reader's volatile key location (P2 = 00).Lc 06, six key bytes, location 00 or 01
2. General AuthenticateFF 86 00 00 05 01 00 04 60 00Yes. Reader and card prove they share the key for the sector of block 04.The key, the key type (60 = A, 61 = B), the block, the location (last byte), the card
3. Read BinaryFF B0 00 04 10Yes. Reads 16 bytes of block 04.A block in the sector just authenticated, which the access bits let this key read

Each byte is explained in the C# tutorial's command table. Step 1 never reaches the card, so a failure there is always about the command or the reader, never about the card's key.

Send the three commands one at a time (in the ACS Script Tool, or with logging in your code) and note the first one that does not return 90 00.

First step that failsWhat it rules outCheck these causes
Nothing reaches the reader: a PC/SC error such as 0x80100069 or 0x8010000BStatus words entirely: this is the PC/SC layerPC/SC error codes; close other card programs; then reader mode
Load Key (FF 82)The card and its key: step 1 does not use the cardCommand bytes and key location; then reader mode
Authenticate (FF 86) on every sectorThe command format, if step 1 passedcard type, key not loaded, location mismatch, then wrong key
Authenticate on some sectors onlyCard type and reader: other sectors workthose sectors have another key, key A vs B, block numbering
Authenticate fails after it worked a moment agoThe key, if nothing was changedcard moved, reader reset, another program loaded a different key
Read Binary (FF B0) after a successful authenticateThe key for that sectorblock outside the authenticated sector, or access bits; Le (16 bytes always works)

The status word comes from the ACS reader, not the card, and the manuals document fewer codes than the PC/SC specification allows. The ACR1252U and ACR122U API manuals list 90 00 for success and 63 00 ("the operation failed") for all three commands; the ACR1552U reference manual lists any 6X XX as a failure. PC/SC Part 3 gives further example codes per command, which a reader may use. So the same cause can produce different replies on different models.

ReplyAfter Load Key (FF 82)After Authenticate (FF 86)After Read Binary (FF B0)
63 00The reader did not accept the key load (ACS: operation failed). Check Lc, length, P1 and location.Authentication did not succeed (ACS: operation failed). The most common reply; work through the causes below.The read failed: sector not authenticated in this session, wrong block, or the card moved.
69 82PC/SC Part 3: "card key not supported"PC/SC Part 3: "security status not satisfied". Treat like 63 00.PC/SC Part 3: "security status not satisfied". Not authenticated, or the access bits do not let this key read the block.
69 86PC/SC Part 3: "volatile memory is not available". Check P1 = 00 and the location.PC/SC Part 3: "key type not known". Byte 4 of the data must be 60 (key A) or 61 (key B).PC/SC Part 3: "command not allowed"
Other69 88 "key number not valid" and 69 89 "key length is not correct" (Load Keys); 65 81 "addressed block does not exist" (Authenticate); 6A 81 function not supported. Look up others in the status word table and the APDU error code guide.

Record the exact reply with the reader model and firmware. If you see a code that is not in your reader's manual, that is useful information for a support request.

Check them in this order on a card you own. The first four are about what you sent; the last four are about the card, the session and the reader.

1. The wrong key

New MIFARE Classic cards leave the factory with key A and key B set to FF FF FF FF FF FF in every sector. Cards that have been issued for an access, attendance, canteen, transport or membership system normally have their own keys in some or all sectors. That is the purpose of the keys, and it is the most common reason why a card authenticates in one system and not in your test.

  • Your own new card fails with the factory key? Then the cause is elsewhere: check the other seven causes.
  • Your own system's card? Use the key your system or card supplier gave you, for the right sector and key type.
  • The key is unknown? Ask the card issuer. That is the only answer this page gives.

Do not "try" keys: authentication is not a guessing game, and a program that loops over keys is not a troubleshooting tool.

2. Key A used where key B is needed (or the reverse)

Byte 4 of the authenticate data chooses the key: 60 for key A, 61 for key B. Both keys may be set and correct, and the authentication can still fail, because the sector's access bits decide which key may be used:

  • In the factory (transport) configuration key B is readable, and NXP's data sheet says a readable key B cannot be used for authentication. A key B failure on a new card is therefore expected.
  • In an issued card, a common pattern gives key A read rights and key B write rights. Authenticating with the "other" key for an operation can succeed and the read or write still fail.

How the two keys and the access bits work is explained in key A and key B.

3. The wrong key number (location)

The reader stores keys in numbered volatile locations: the ACR1252U, ACR1552U and ACR122U manuals document two, 00 and 01. P2 of Load Key says where the key goes; the last data byte of General Authenticate says which location to use. If you load into 01 and authenticate with 00, the reader uses whatever is in 00: the default, an older key, or a key another program loaded. Check that both numbers match in the bytes as sent, not just in your variables.

4. The wrong block, or access bits that forbid the operation

  • Block, not sector. The authenticate and read commands address blocks, numbered in hex. Sector 4 starts at block 10, not block 04. A block number written in decimal but sent as hex points to another sector.
  • Authenticate covers one sector. After authenticating block 04, blocks 04 to 07 are open. Reading block 08 needs a new authenticate for sector 2.
  • Large sectors on a 4K card. From sector 32 on, sectors have 16 blocks (sector 32 is 80 to 8F), so the "block = sector × 4" rule no longer applies. See the 4K layout.
  • Addresses beyond the card. Blocks above 3F do not exist on a 1K card; PC/SC Part 3 lists 65 81 for this.
  • The sector trailer's access bits. Authentication can succeed while the read or write fails, because the access bits in the trailer (the last block of each sector) say which key may do what, including "never". That is a configuration of the card, not a fault. Do not write the trailer to "fix" it: a wrong trailer can lock the sector permanently. The bits are decoded in what the access bits control.

5. The card is not a MIFARE Classic

Only MIFARE Classic (and cards that behave like it) accept this authentication. Check the card before sending any key, from the ATR the reader builds (how to identify the card):

CardHow it shows upWhy FF 86 with 60/61 failsWhat to do
MIFARE Ultralight or NTAGATR card name 00 03No Classic keys; the ACS manuals say Ultralight memory needs no authenticationRead pages directly: Ultralight / NTAG test
MIFARE DESFireShort ATR of an ISO 14443-4 card; ATS presentApplications and files with DES, 3DES or AES keys and their own authentication commandsRead DESFire cards and the DESFire commands
MIFARE Plus in security level 3Behaves as an ISO 14443-4 cardIn SL3 the card uses AES only. The ACR1552U manual lists MIFARE Plus SL1 and SL2 for its Load Key and Authenticate commands, not SL3.Use software written for MIFARE Plus SL3 with the issuer's AES keys. BSD has not tested MIFARE Plus cards.
MIFARE Plus in security level 1Can identify like a Classic (NXP: SAK 08 or 18)Normally does not fail for this reason: SL1 accepts Classic-style authenticationTreat like a Classic card for this test
A contact card, or the SAM slotATR from the SAM reader entry, or a contact cardNot a contactless MIFARE card at allSelect the PICC reader entry. See the SAM slot guide.

6. The card moved

Authentication lasts only as long as the card stays powered and selected. If the card leaves the field, even briefly at the edge of the reading range, the reader has to select it again, and every sector has to be authenticated again. A failed authentication can also leave the card unable to continue until it is selected again, so after one failure the following sectors may fail too, even with the right key. Lift the card, present it again, and repeat from Load Key. Keep it flat and still on the marked area; metal underneath the reader or a second card in the field makes this worse (see metal and several cards).

7. The key is not loaded any more after a reader reset

The ACS manuals describe the key locations as volatile: the ACR1252U manual says the key disappears once the reader is disconnected from the computer. So after unplugging the reader, a USB reset or a driver restart, an authenticate with the old location fails until you load the key again. BSD's practice is to reload the key after every reconnect and after the PC resumes from sleep, because USB power saving can reset the reader (USB causes). The key locations belong to the reader, not to your program: another tool connected to the same reader (QuickView, the Script Tool, a BSD utility, another application) may load a different key into the same location. Close other card programs while you test.

8. The reader is in a different mode

  • Keyboard emulation (ACR1552U). In keyboard mode the reader types the UID into the active window and is not a PC/SC reader, so no command reaches it at all. Switch it back to PC/SC mode.
  • NFC peer-to-peer or card emulation (ACR1252U). These modes make the reader act as an NFC device or as a tag. Card commands need the normal card read/write mode; see the ACR1252U developer notes.
  • The wrong reader entry. Dual-slot readers show a PICC (contactless) entry and a SAM entry. The MIFARE card is only reachable through the PICC entry.
  • Firmware upgrade mode. A reader whose name shows a firmware-upgrade or bootloader name is not ready for cards: see ACS reader firmware.

The fastest way to find the cause is a control test: the same reader and PC with a new MIFARE Classic 1K card that still has its factory keys, then the failing card. All three tools are read-only for this test.

  1. ACS QuickView: is it a MIFARE Classic, and is the reader in PC/SC mode? Select the PICC entry and present the card. QuickView shows the ATR; card name 00 01 is a MIFARE Classic 1K. No event at all points to reader mode or the reader entry. Reading the ATR in QuickView.
  2. ACS Script Tool: the three steps by hand. Send the sequence from the table above with the factory key to the new card, one line at a time, then to the failing card. Close QuickView first, so it does not hold the card. Your first script.
  3. BSD NFC Card Utility (Default Key edition). Auto-detect shows the card type, and its read-only test reports whether the card still uses the factory keys. The Default Key edition works with factory keys only, by design. BSD utilities (download: ACR1252U, ACR1552U).
ResultConclusionNext step
New card passes, failing card fails at Authenticate in every sectorReader, PC and commands work. The failing card does not use the factory key, or is not a Classic.Check its ATR (cause 5). If it is a Classic: it has its own keys. Use your system's key, or ask the card issuer.
New card passes, failing card fails in some sectorsThose sectors have other keys or access bitsRead only the sectors your application owns, with its keys.
Both cards fail at Load Key or AuthenticateReader, mode, reader entry or command bytesReader mode, key location, then the MIFARE test troubleshooting table.
Everything passes in the Script Tool, fails in your programYour code: bytes, location, block numbering or key reloadIn your own code.
Passes, then fails after a whileCard movement, reader reset or another programCause 6 and cause 7.

The short version of this checklist, with the test procedure around it, is on the MIFARE test page: what a failed authentication means. Log each result as shown in the test-card log.

  • Check two layers, in order. First the PC/SC return code of SCardTransmit, then the status word. Only the second one can be 63 00. The pattern is in the C# tutorial's handling 63 00 and 69 82.
  • Check the card type before any key. The tutorial's helper refuses to send a key to a card whose ATR is not a MIFARE Classic.
  • Load the key at the start of every session and after any reconnect or card reset.
  • Keep authenticate and read together inside SCardBeginTransaction / SCardEndTransaction, so no other program's command lands between them.
  • After a failed authenticate, do not continue with the next sector as if nothing happened; reselect the card (present it again or reconnect), reload the key and start again.
  • Never loop over keys, and never log key bytes: log the key location and "factory key" or "system key".
  • Keep production keys out of the code. Where they belong is explained in secure key storage.

For every other status word, see the APDU error code guide.

Authentication still failing on your own card? Send us this

  1. Reader model and firmware, Windows version and the tool or program you used.
  2. The card's ATR and UID, and whether it is a new card or one issued by your system.
  3. The three commands as sent and each reply (with the key bytes replaced by "factory key" or "system key").
  4. The result of the control test with a new factory-key card.

We help with reader setup and with software for cards you own. Send the details to BSD. For cards with keys you do not have, the card issuer is the right contact.

Checked on 1 and 2 Dec 2026 in the ACS manuals (local copies from the ACS SDK kits and download pages), the PC/SC specification and NXP documents. Explanations are in BSD's own words.

  • ACS, ACR1252U Application Programming Interface v1.17, section 5.2.4: Load Authentication Keys (volatile locations 00 and 01, cleared when the reader is disconnected), Authentication for MIFARE Classic, response codes 90 00 / 63 00, from the ACR1252U downloads page
  • ACS, ACR1552U Series Reference Manual v1.05, section 5.3.3: Load Key (key buffer 0 to 1, volatile), Authenticate (card types MIFARE Standard, MIFARE Plus SL1 and SL2, Ultralight C, DESFire), "6X XX Fail", from the ACR1552U downloads page
  • ACS, ACR122U Application Programming Interface v1.4: Load Authentication Keys, Authentication, Read Binary Blocks, 63 00 "the operation failed", from the ACR122U downloads page
  • ACS utility tools page (QuickView v2.18, Script Tool 5.2, Smart Card and Reader Tool), checked 1 Dec 2026; ACS asks for registration details before these downloads
  • PC/SC Workgroup specifications, Part 3 rev. 2.01.09, tables 3-12, 3-14 and 3-19: Load Keys, General Authenticate and Read Binary error code examples
  • NXP, MF1S50yyX/V1 MIFARE Classic EV1 1K data sheet: transport configuration, readable key B not usable for authentication, access-condition format check
  • NXP, AN10833 MIFARE type identification procedure: SAK values, including MIFARE Plus in security level 1

BSD Infotech is an independent ACS supplier and integrator, not the manufacturer. ACS, the ACS logo and ACS product names belong to Advanced Card Systems Ltd. MIFARE, MIFARE Classic, MIFARE Plus, MIFARE Ultralight, MIFARE DESFire and NTAG are trademarks of NXP B.V. Windows is a trademark of Microsoft Corporation.

MIFARE authentication still failing?

Send us the reader model, the card ATR and the three commands with their replies. We help with ACS reader setup and MIFARE software for cards you own.