whywilson / pn532-python

Use All-in-one PN532 with Python
MIT License
5 stars 0 forks source link

Authentication failure #1

Open luisfear opened 2 months ago

luisfear commented 2 months ago

MIFARE Classic Whenever I try to read a block with a different key than the default one, I get an authentication failure. Any suggestions?

whywilson commented 4 days ago

If you are reading the block on Mfiare Classic 1K/4K tag, have a try on PN532 or PN532Killer with the command below,

usage:
  hf mf rdbl [-h] --blk <dec> [-a | -b] -k <hex>

options:
  -h, --help            show this help message and exit
  --blk <dec>, --block <dec>
                        The block where the key of the card is known
  -a                    Known key is A key (default)
  -b                    Known key is B key
  -k <hex>, --key <hex>
                        Mifare Sector key (12 HEX symbols)