Reply To: Trying to read DESFire EV1 Card, requires Authentication.

Forum MIFARE SDK Trying to read DESFire EV1 Card, requires Authentication. Reply To: Trying to read DESFire EV1 Card, requires Authentication.

Re: Trying to read DESFire EV1 Card, requires Authentication.

23. February 2016 at 9:36
Hi Michael,

It is not necessary to include any keys here!

I do not know the complete sequence you have implemented, but the authentication is not required for all actions. On a MIFARE DESFire you deal with application IDs, short: AIDs. A typical sequence could look like:

  • Call GetAppications() to see if your AID is found and the card is one you have issued.

  • Call SelectApplication( AID ) to select your application.

  • Call ReadData( FileID ) to read data from a file in your application.


The commands GetAppications() and SelectApplication() never requires an authentication. The command ReadData() also does not requires an authentication if the file was created with the read access permission “free” and the communication type “plain” or “plain maced”.

If the file read access permission uses a key, then you have to authenticate with the requested key before you can read the file.

Regards,
The MIFARE Team
+ 0  |  - 0