-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NfcDict Refactoring #3271
NfcDict Refactoring #3271
Conversation
@v0lp3 also keep in mind that there are other apps that using nfc dict (picopass) that is going to be broken by those changes |
I see. How about we retain the nfc_dict.* files or replace functions in nfc_dict.h with inlines to ensure compatibility? |
@v0lp3 good question, let's wait for @gornekich comment on this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, rename KeysList to KeysDict and rework nfc application with KeysDict. No need to support old symbols. I will rework picopass app to use new KeysDict by my self.
So, the scope of this PR should be moving NfcDict to KeysDict in toolbox
Ok done |
@v0lp3 please, fix unit tests. |
How can i configure a mock flipper zero device? |
Don't understand your problem. Do you have flipper to test your changes? |
I was wondering if it is a problem to run unit tests with PR GitHub actions. I read that the device used in the actions is mock and I was asking you if it would be possible to replicate the configuration in my own environment. |
I see that you fixed unit tests. Running locally |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done, thanks!
What's new
I refactored the NfcDict structure to make it more generic, so now we can use it with other applications like RFID (for example if we implement dictionary attack on T5577's password). The NfcDict was renamed KeysList and was moved into toolbox, therefore MfUserDict wraps this structure.
Verification
Test NFC application.
Checklist (For Reviewer)