cnie-python-tools
Experimental Python toolkit for reading the French National Identity Card (*Carte Nationale d'Identité*, CNI) via a PC/SC **contact** smart card reader, using PACE-CAN authentication and Secure Messaging.
File Explorer
Download Latest Version (.zip)- __init__.py
- apdu.py
- cli.py
- crypto.py
- datagroups.py
- lds.py
- pace.py
- pcsc.py
- secure_messaging.py
- sod.py
- tlv.py
- .gitignore
- dump_cnie.py
- LICENSE
- pyproject.toml
- README.md
- requirements.txt
- uv.lock
# Installation Guide
1. Get the code
git clone https://github.com/hufon/cnie-python-tools
Downloads the entire project code from GitHub to your computer.
cd cnie-python-tools
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- APT (Debian/Ubuntu 계열) Built into Debian/Ubuntu-based Linux distributions.
sudo apt install pcscd libpcsclite-dev swig python3-dev
Installs directly from the APT package repository (Debian/Ubuntu-based).
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. Python
EasyPrerequisites
pip install -e .
Installs the Python libraries listed in requirements.txt (or similar).
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
