chariotsolutions / phonegap-nfc

PhoneGap NFC Plugin
MIT License
706 stars 559 forks source link

NTAG216 Set Lock Bit with Password. #199

Open JohnMcLear opened 8 years ago

JohnMcLear commented 8 years ago

NTAG213/6 has the ability to set lock bits which means a user can provide a password to set the tag as read only and then set a password again to change the tag to writable.

"Configurable password protection with optional limit of unsuccessful attempts" - Source: http://www.nxp.com/documents/data_sheet/NTAG213_215_216.pdf

Reading on a functioning implementation available at: http://stackoverflow.com/questions/31734059/android-error-when-resetting-dynamic-locks-on-nfc-ntag213-28h

I would expect this would be an android only implementation as I doubt other providers expose the required methods. I'm comfortable with that.

I would expect behaviour such as nfc.lockWithPassword(1234, onSuccess, onFailure); would be the correct approach. 1234 would be the password, I expect we would need to limit the # of digits and allow only for integers..

don commented 8 years ago

Might be related to #176

chelinho139 commented 5 years ago

Hey, any updates or PR's on password protected ntag216?