Skip to content

Uepsilon/smartcard-browser-bridge

Repository files navigation

Smartcard Browser Bridge

Smartcard Browser Bridge: Uses the ID of a Smartcard to call a defined URL

Usage

python smartcardBridge.py --url=URL (--resource=RESOURCE)
python smartcardBridge.py -U URL (-R RESOURCE)
python smartcardBridge.py --help

  • URL is the URL the CardID will be attached to

Requirements

You'll need this stuff in order to be able to use this script.

Python:

  • pyscard -> Library for Python to use PC/SC
  • docopt

Global:

  • pcsc
  • A Cardreader (for obvious Reasons)
  • A SmartCard (e.g. Mifare-Cards like Classic / Ultralight)

Install (on clean Raspbian)

  1. Install system dependencies
sudo apt-get install dh-autoreconf libudev-dev flex
sudo apt-get install pcscd libusb-dev libpcsclite1 libpcsclite-dev dh-autoreconf pcsc-tools
sudo apt-get install swig python-dev
  1. Install pyscard

    git clone https://github.com/LudovicRousseau/pyscard.git
    cd pyscard
    rm -rf build
    sudo rm -rf build
    sudo python setup.py build
    sudo python setup.py install
    
  2. Install python dependencies

    pip install --user docopt
    

About

Reads the ID of a Smartcard and opens an URL with it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages