-
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
NFC - Machine Readable Travel Documents #1866
Conversation
The TextInput would not allow another key press if the template that is going to be overwritten is over the over the buffer size. This change clears any default text, before checking the length of entered input.
- Check digit - KMRZ
Clean up reader_analyzer after usage
This reverts commit 3458ded128a3c13ddd18484c2e1be2945e951a28.
When testing with a Slovenian passport, I get a MemManage restart. |
@craftbyte, would you be able to share some logging and debugging details with me? You can reach me at [my username]@gmail.com |
<3 |
Just to inform, Brazilian passports work flawlessly, I've tested 5 different and all worked as expected, awesome job @qistoph ! |
While I was testing with Russian international passport, no data from EF_DG1 were extracted |
Log fragment:
|
Hi ;-) Looks like it make sense to move this feature into separate application, doesn't it? I'll switch this PR to Draft, un-draft it when ready. |
Maybe decoding yes but I'd argue it makes sense to at least detect mrtds in stock firmware. |
@gornekich what do you think? |
wow good job |
Hey! Fantastic job! Need any help? |
Thanks @pawisoon! I was really hoping to have this included in the firmware. The suggestion to convert into an app is a bit of a disappointment. If anyone is willing to help me get that started, I'm willing to reconsider working on it. |
@qistoph is there a limitation to what travel passports can be read? When I try to authenticate US passport flipper crashes with furi_check error. |
You need to do BAC/PACE access control - based on DoE, DoB and document number in order to access Chip data. You can read everything whats present on data page + high resolution photo + sometimes some optional data is present (see ICAO 9303). The fingerprints are not readable by regular users in any passports, need a cert that only country officials have access to. Most agencies won't even do this themselves due to the complexity and cost of reading them from the chip. |
Sorry to reply again. Have you checked your DoE, DoB and document number correctness? Im not sure but maybe you are holding some newest model of US passport(post 2020) that migth be PACE only. You could verify this with a passport reader e.g. https://apps.apple.com/us/app/readid-me/id1463949991 |
I tried different access types (BAC and Any). If I mistype any of the fields on purpose I get the can't authenticate error. My passport is before 2020. I tried it with 2 different passports that are both US and have the same issues on both of them. |
Maybe its the implementation issue specific to US passport. Is the passport reader app I linked working with your document? Making sure NFC chip is intact and working. |
Yeah the app you linked works great. One passport is from 2015 and another from 2019 both are read correctly by the app. |
I found these related to your issue: https://www.reddit.com/r/flipperzero/comments/10f8m3f/anyone_who_can_tell_me_why_this_message_pops_up/ |
@skynet01 Having the same issue with a US passport. And yes that ReadID application reads my passport data correctly. I do notice the buffer[100] in mrtd_read_parse_file is probably too small for some of the tag data on the COM page on the US passport. @qistoph Seems for EF.COM page is the length is 265 for a US passport. Which seems to be a lot more data than other passports I've tried.. Has the multibyte BER length check been tested? 8608050 [D][Mrtd] Selected COM EDIT: Fixed the issues and here is the PR with the changes qistoph#1 |
@mranostay I can confirm that your fix solved the problem for me and passports read correctly now :) |
Are there any plans on this being worked on / merged / made an app? |
I'm not turning it into an app. If someone else is and needs some MRTD help, feel free to ask me. I was really hoping it to be part of the firmware, but that doesn't seem to be happening |
@hacdias not going to merge it in this form, this should be standalone application. Also we are currently refactoring NFC, so I highly advice to wait till we finish with it. |
How is it going? |
@SolarSciencePup I'd say at this point it can be closed. We really'd like to see it as external app. |
Maybe not quite a finished PR yet. I'm looking for some feedback to make sure I'm going in the right direction.
Especially with the new FAP's, I can see you might prefer this to be an external application (FAP). On the other hand, maybe you're looking to support more and more NFC cards with the base firmware.
Please let me know your thoughts and any feedback on the code.
What's new
Verification
TODO
helper
folderChecklist (For Reviewer)