MIFARE access keys

With MIFARE 1K and 4K cards, access to a sector’s data may require one or two authentication keys. These keys (KeyA and KeyB) can be configured for each card type. The keys can be expressed as either an ASCII character string or as binary value hex pairs indicated by the KeyType setting:

KeyType=1 indicates an ASCII String , for example 'my key'

KeyType=0 indicates binary data as ASCII hex pairs, for example '6d79206b6579'

For example:

KeyType=0

KeyA=my key

or

KeyType=1

KeyA=6d79206b6579

If they are required, the KeyType, KeyA and KeyB options should be specified in the appropriate card type section (allowing different keys to be used with different card types).