I know using mifare classic is not as secure as mifare desfire, but I don't have enough knowledge with desfire neither mifare plus yet so I'll start with classic first.
I would like to implement mifare classic in a door lock, but I don't know how. Let's just say I will use the sector 4. Then I'll change the authentication key. Then what's next? Is this all I need to do? Or should I write something on the blocks?
Is it:
A) 1. Authenticate sector 4.
- If authentication succeed open door
or
B) 1. Authenticate sector 4
If authentication succeed, read block 2
Verify block 2.
If block 2 is verified, open door.
In my view, option B is way better, or is it? Any other tips how can I use mifare classic as a door lock key?