title: Creating applications on MIFARE DESFire EV1 cards
body: <p>I have a project to create attendance system using MIFARE DESFIRE EV1 cards.</p>
  
  <p>The reader brand that I need to use for this project only supports ISO 7816-x so I need to use DESFIRE ISO7816-4 APDU Wrapping mode to send commands to Card Reader.</p>
  
  <p>I also have access to NXP document resources.</p>
  
  <p>Up to now I can run A few commands like Get Version, Get Application IDs, Free Memory on card.
  all these commands can be run in plain with no security required. 
  however I couldn't create application on this card yet.</p>
  
  <p>I'm sure my command for creating application is correct but it is failing with code 0x7E (Length Error).</p>
  
  <p>here is my create application code which is failing.</p>
  
  <pre><code>-&gt; 90 CA (00 00 05) 414141 0F 0E (00)
  &lt;- 91 7E
  </code></pre>
  
  <p>I like to know:</p>
  
  <ul>
  <li>Am I running the command in correct sequence?</li>
  <li>Is it required to authenticate before creating applications in card</li>
  </ul>