Before we dive into changing the config.txt for the VTAP reader, you have to understand some things about MIFARE DESFire. Particularly, you need to understand that MIFARE DESFire keys are just arbitrary hexadecimal values. You can create a DES key, an AES key or a 3DES key. Each are different lengths, but we'll use AES which is 16 bytes. Here's the openssl command to do so:
If you want to do it in python, here's a little snippet you can use as well:
import os
key = os.urandom(16)
print(key.hex())
Now that we have a solid way to create keys, let's save the commands so we can easily reference them later. We'll need at least one key in our config.
Let's move into the DESFire application id, also known as the AID. This is a 3 byte value - it's also largely arbitrary - it just needs to be a hexadecimal value. We'll use FE99BA as the AID in our DESFire app structure.