This shows you the differences between two versions of the page.
ac:laboratoare:09 [2024/12/15 06:39] dimitrie.valu |
ac:laboratoare:09 [2024/12/15 06:42] (current) dimitrie.valu |
||
---|---|---|---|
Line 322: | Line 322: | ||
<solution -hidden> | <solution -hidden> | ||
- | We should allow students to select the data somewhat arbitrarily as it's not **entirely* provided in the exercises above, as per the minimum spec mentioned in EMV Book 2, page 87, section 8.1.1, table 28. | + | We should allow students to select the data somewhat arbitrarily as it's not **entirely** provided in the exercises above, as per the minimum spec mentioned in EMV Book 2, page 87, section 8.1.1, table 28. |
<code python> | <code python> | ||
Line 352: | Line 352: | ||
</code> | </code> | ||
</solution> | </solution> | ||
- | |||
- | <hidden> | ||
- | ==== Getting data from your card ==== | ||
- | |||
- | First, get pyscard from | ||
- | [[https://pypi.python.org/pypi/pyscard|here]]. | ||
- | |||
- | Then, install pyscard (check the readme). Do the following (as root): | ||
- | * Install pcsclite-dev: | ||
- | <code> | ||
- | sudo apt-get install libpcsclite-dev | ||
- | </code> | ||
- | * Only if the above doesn't work, then install these packages: | ||
- | <code> | ||
- | #apt-get install swig libudev-dev git autoconf libtool libsystemd-dev flex | ||
- | </code> | ||
- | * Get and install Pyscard from [[https://pypi.python.org/pypi/pyscard|here]] | ||
- | <code> | ||
- | #python setup.py build_ext install | ||
- | </code> | ||
- | * Install Pyserial | ||
- | <code> | ||
- | #sudo pip install pyserial | ||
- | </code> | ||
- | If this doesn't work, then get pyserial from [[https://pypi.python.org/pypi/pyserial#downloads|here]] | ||
- | * Install pcsc related libs: | ||
- | <code> | ||
- | sudo apt-get install libusb-dev libusb++-0.1-4v5 libccid pcscd libpcsclite1 | ||
- | </code> | ||
- | * Only if desired, additional tools can be installed from here: | ||
- | <code> | ||
- | #apt-get install libpcsc-perl | ||
- | #apt-get install pcsc-tools | ||
- | </code> | ||
- | See details [[http://support.gemalto.com/fileadmin/user_upload/IAM/FAQ/How_to_install_the_PC-Link_reader_on_Linux.pdf|here]]. | ||
- | |||
- | |||
- | |||
- | Files for accessing card data [[https://ocw.cs.pub.ro/courses/_media/ac/laboratoare/sclink.zip|here]]. | ||
- | </hidden> | ||