How can I prevent (overwrite or format or clone anything else) my NFC TAG?

First, sorry about my poor english.

I have created an app that can read and write NFC tags. I want the tag not to be copied or overwritten by another application or format.

I found an app called NFC Tools that has both Set Password and Remove Password features. When the password is set to "Set Password", if you try to write in other applications, they throw away IOException

. If you disable the password using the "Remove Password" function, you can write to her.

So I have to implement this functionality in my application, I would like to get what I want. However, I was unable to find the source of the sample.

Web links, example source or other way or recommend something. Thank.

+3


source to share


1 answer


It's good that I know:



  • The way to prevent the tag from being overwritten or formatted is the makeReadOnly () method, but as you know, you cannot change the tag later. Mifare cards can "block" a sector, but in reality only older smartphones can manipulate Mifare RFID cards (Classic or Ultralight) (only read card ID).

  • Duplicate avoidance is not possible, but you will be able to detect duplicates when combined with your read application, for example with some kind of checksum, encryption method or sign that includes the card ID and if the type of tag you are using is not writable ID (you can get a classic Mifare card with a writable ID).

0


source







All Articles