Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ccre_card_unique_id_exporter-0.0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ccre_card_unique_id_exporter-0.0.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file ccre_card_unique_id_exporter-0.0.2.tar.gz.

File metadata

File hashes

Hashes for ccre_card_unique_id_exporter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e6190be656b6c89b99d3591b729e5a8df0771715d041c17dade3cf8a456bbea8
MD5 9ad1e3931d0e90ea72128fcf9fc96a64
BLAKE2b-256 f887eddc94d48f3f044f54573495f5df8775ba0b4009e9efe270310c2bfcffe6

See more details on using hashes here.

File details

Details for the file ccre_card_unique_id_exporter-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ccre_card_unique_id_exporter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 88f58f721b5850283d5d3a4b6834885deabdd6515d7f0552adc805a59d66354b
MD5 9e3acc7f63cfda81a0f1e7b46bf0f60f
BLAKE2b-256 55bdd9a0bb7de74ada51a06d2777a120a4a3f8cfa2532b1dab6f92625d003f56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page