Sem descrição

abcMarcus 37fe6d4fec Added AU and HK flag há 8 meses atrás
.catalog 37fe6d4fec Added AU and HK flag há 8 meses atrás
.github 4ece979e10 PULL_REQUEST_TEMPLATE há 8 meses atrás
images 0939786adf Save epassport logos há 10 meses atrás
lib 7238894af2 Add com reading and asn1 parsing há 10 meses atrás
reference 37b252d2a2 reference material há 10 meses atrás
scenes a193ddf9a2 uppercase all letters in passport number há 9 meses atrás
.clang-format 9fe02b0a3e Clear history há 11 meses atrás
.gitignore 9fe02b0a3e Clear history há 11 meses atrás
CODE_OF_CONDUCT.md 16e0bfa0f8 CODE_OF_CONDUCT há 8 meses atrás
CONTRIBUTING.md 2472d5f5f4 Create CONTRIBUTING.md há 9 meses atrás
LICENSE b8c7803b36 Create LICENSE há 9 meses atrás
README.md 37fe6d4fec Added AU and HK flag há 8 meses atrás
SECURITY.md 8c3b9715df Create SECURITY.md há 9 meses atrás
application.fam 7581bc2191 more changelog items há 10 meses atrás
bsearch.c 88e7f838eb trying to use asn1c to decode DG1 há 10 meses atrás
eMRTD.asn1 7238894af2 Add com reading and asn1 parsing há 10 meses atrás
memmem.c 89e36f2e4e Look for jpeg header in first 100 bytes of DG2 há 10 meses atrás
passy.c 194c9778d1 For all other DG, grab the header and show that há 10 meses atrás
passy.h 9ea747ecc9 restructure UI há 10 meses atrás
passy.png 36d65b1f64 new icon há 10 meses atrás
passy_common.c 6c42d1b981 Fix for document numbers containing Q-Z há 10 meses atrás
passy_common.h 68c87dcbe2 Fix calculation of file length há 10 meses atrás
passy_i.h 80348d61d7 Restart NFC scanner is unhandled protocol is found há 10 meses atrás
passy_reader.c 81360b90d7 Correct fallback when dg2 image header can't be found há 9 meses atrás
passy_reader.h 8611f0508c Accept 4A protocol há 10 meses atrás
secure_messaging.c 7c05345f96 DRY up key diversification há 11 meses atrás
secure_messaging.h 633e3da57d handle dynamic passport number length há 11 meses atrás

README.md

Passy: Flipper Zero Passport Reader

Passy is a tool for reading electronic passports (ePassports/eMRTDs) using the Flipper Zero device. It extracts and decodes data securely stored in modern passports, designed for hobbyists, researchers, and security professionals.


Features

  • Reads and decodes ePassport data from a wide range of countries
  • Utilizes MRZ (Machine Readable Zone) information for secure access
  • Extensible for new country support—contribute your flag!
  • Advanced menu for debugging and exploring additional data groups (DGs)

Tested with the following countries

🇺🇸 🇨🇱 🇫🇷 🇬🇧 🇵🇭 🇷🇺 🇹🇼 🇺🇦 🇦🇿 🇨🇦 🇮🇹 🇪🇸 🇪🇪 🇨🇭 🇦🇺 🇭🇰

If it works for yours, submit a PR to add your country flag!


Usage

eMRTDs are secured to prevent unauthorized reading. The key for accessing the data is derived from:

  • Passport number
  • Date of birth
  • Date of expiry

Use the Flipper Zero to scan your passport’s NFC chip and enter the required information.


Limitations

  • Advanced menu is hidden unless Debug mode is enabled
  • Some data groups (DGs) are not fully parsed under "advanced" menu
  • Country coverage is limited (see above)

Development

Prerequisites

  • Flipper Zero device (updated firmware recommended)
  • ufbt for building
  • asn1c ASN.1 compiler (for protocol/data parsing)

Installation

Clone this repository:

git clone https://github.com/bettse/passy.git
cd passy

Build the ASN.1 code (optional, required for development):

asn1c -D ./lib/asn1 -no-gen-example -pdu=all eMRTD.asn1

Roadmap / To Do

  • Support PACE protocol
  • Add support for more countries' passports
  • Improve parsing of additional DGs

Contributing

Contributions are welcome! If Passy works with a new country, feel free to:

  1. Add your country’s flag to the list above
  2. Submit a pull request

License

MIT License


Acknowledgments

  • Inspired by the global ePassport community
  • Powered by Flipper Zero and open-source tooling