Skip to content

Instantly share code, notes, and snippets.

@PSJoshi
Created October 12, 2022 06:38
Show Gist options
  • Save PSJoshi/4d9dd047de04a6cd2c44f46a5c4c7c6c to your computer and use it in GitHub Desktop.
Save PSJoshi/4d9dd047de04a6cd2c44f46a5c4c7c6c to your computer and use it in GitHub Desktop.
Access smart card details using python
  • Install smart card driver - PC/SC (Windows/Linux smart card base components)
# apt-get update
# apt-get install pcscd

# check if smart card is detected
# lsusb

# apt install pcsc-tools
# pcsc_scan

  • Install Python library pyscard for accessing function of PC/SC
# apt-get install python3-pyscard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment