A simple Card Unique ID Exporter
Project description
CCRE
Overview
This is a simple Python library for reading smart cards and extracting their unique card serial numbers (CSN). It provides basic functionality to interact with smart card readers and perform operations like selecting AID files and retrieving card serial numbers.
Example Usage
# FIND card reader
reader = find_card_reader() # or find card reader by get_card_reader_list()
if reader:
# MAKE a connection
connection = create_new_reader_connection(reader, 'T0')
# SELECT aid file of financial
select_network_aid(connection, 'financial')
# GET card serial number
csv = get_card_serial_number(connection)
print(f"Card serial number: {csv}")
else:
print("No reader found.")
Dependencies
This library requires the following dependencies:
pyscard: For interacting with smart card readers.
Install dependencies using:
pip install pyscard
Features
- Detect available smart card readers.
- Establish a connection with a smart card reader.
- Select specific AID files on the card.
- Retrieve the unique card serial number (CSN).
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ccre_card_unique_id_exporter-0.0.2.tar.gz.
File metadata
- Download URL: ccre_card_unique_id_exporter-0.0.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6190be656b6c89b99d3591b729e5a8df0771715d041c17dade3cf8a456bbea8
|
|
| MD5 |
9ad1e3931d0e90ea72128fcf9fc96a64
|
|
| BLAKE2b-256 |
f887eddc94d48f3f044f54573495f5df8775ba0b4009e9efe270310c2bfcffe6
|
File details
Details for the file ccre_card_unique_id_exporter-0.0.2-py3-none-any.whl.
File metadata
- Download URL: ccre_card_unique_id_exporter-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88f58f721b5850283d5d3a4b6834885deabdd6515d7f0552adc805a59d66354b
|
|
| MD5 |
9e3acc7f63cfda81a0f1e7b46bf0f60f
|
|
| BLAKE2b-256 |
55bdd9a0bb7de74ada51a06d2777a120a4a3f8cfa2532b1dab6f92625d003f56
|