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.3.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.3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ccre_card_unique_id_exporter-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fd3360b58f46747ec4d21216410b4136cd199f3e79bab081e15fce6382d6680b
MD5 00f2a75480ae27adf3aa020fa166631e
BLAKE2b-256 5eac6481d7356aaa8934a6aae77af30eee818a3254bc34cd43f6c0c91c455f08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ccre_card_unique_id_exporter-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f0d9d3d7552a11f46355e7c45905a2c1198a6e56b61e386aa7bd0f033f476a36
MD5 ce87023ed32fefd26f8899fae3934a69
BLAKE2b-256 bea00859f689b4a51628530b36f21bfe68dc2fb531093b2220f99988781ea38c

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