Closed AkooMakoo closed 2 years ago
I managed to authenticate a password that was set with the NfcOpenReader app, but still no luck with the NFC tools app.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
how can i set password less or more than 8 characters
Hello!
I managed to set a password on a NTAG213 by using the example code. The password that I set is: 1234abcd which converted to bytes: 18 52 171 205 And then stored on the tag.
To authenticate and write data, I use this code:
And everything works a charm.
The problem is when I set the password from an external tool, the NFC Tools app or the NfcOpenReader app. The NFC tools app lets me enter any strings I want without limiting the length or checking the characters.
The NfcOpenReader app limiting to 4 bytes hex string:
On each app, I'm entering: 1234abcd as a password for the tag, but when I'm trying to authenticate with the code above the line:
await NfcManager.sendMifareCommandIOS([0x1b, ...password]);
Throws an error that says that the tag connection was lost.
Any suggestions on how I can solve that and support passwords defined by other tools?