mxgxw / MFRC522-python

A small class to interface with the NFC reader Module MFRC522
GNU Lesser General Public License v3.0
521 stars 419 forks source link

"Sector" instead of "Block" #49

Open ghost opened 6 years ago

ghost commented 6 years ago

Dump.py map all data stored in MIFARE Classic 1k card or tag. When Dump.py is executed, prints "Sector" at the beginning of each line of data. I think this is wrong. Each line represents a “Block”.

"2.2 Logical Structure A MiFare Classic card is in principle a memory card with few extra functionalities. The memory is divided into data blocks of 16 bytes. Those data blocks are grouped into sectors. The MiFare Classic 1k card has 16 sectors of 4 data blocks each..."

Sources: http://www.cs.ru.nl/~flaviog/publications/Attack.MIFARE.pdf (p. 4, section 2.2.) https://upload.wikimedia.org/wikipedia/commons/3/39/MiFare_Byte_Layout.png