SCardSCR

[Back to site homepage]

Smartcard and contactless scripting utilities in PHP

This package is a set of PHP extensions and scripts, that can be used to perform any-kind of smartcard related scripting :

Platform

SCardSCR is a PHP4 based project, and for many (good) reasons, it primarly targets Microsoft Windows (Win32/i386).

Author

Johann DANTANT is the author of the PHP4 extensions as well of the supplied PHP scripts. You can contact me by e-mail at

johann dot d at waazaa dot org 

. Remarks, comments, and contributions welcome !

Licence

SCardSCR is open-source software and can be freely downloaded / used / distributed according to Gnu General Public Licence.

Content

PHP extensions

PC/SC
The PC/SC API ported to PHP. Allows to call SCardConnect, SCardStatus, SCardTransmit from a PHP script.
DES/3-DES
Provides DES and 3-DES cipher and decipher functions. This allows for example to perform 3-DES 3-passes authentication with a secured smartcard from a PHP3 script.
SpringProx
Gives T=CL access to ISO 14443-A (level 4) cards (Philips SmartMX, Philips Mifare Pro and ProX, Philips Desfire) through Pro-Active USB or serial readers.

PHP scripts

sim.php
Displays the entries in a GSM SIM card phonebook. It works with a GSM SIM card in a PC/SC reader. (You must supply your PIN to browse the phonebook. Be careful not to lock your SIM !)
pcsc_scan.php
Monitors PC/SC readers and display their status each time a smartcard is inserted (or removed). Of course it works with PC/SC readers. atr_analysis gives explanation of cards ATR.
sprox_scan.php
Does almost the same but for ISO 14443-A contactless cards entering the RF field of a Pro-Active SpringProx or CSB reader. More information on Pro-Active products to be found at www.pro-active.fr.
PC/SC and SpringProx classes
Offers an object-oriented reader abstraction layer.

ToDo list

PHP extensions :

PHP scripts :

Others :

Download

The SCardSCR package includes those items :

Credits

Thanks to Ludovic Rousseau for his pcsc-tools package (C program and Perl scripts) that is the basis of most SCardSCR sample scripts.

Thanks to Pro-Active SARL, France, the company where I work.


Copyright ©

Johann DANTANT (johann dot d at waazaa dot org) 

2005 - Last update 01/01/1970.

Valid XHTML 1.1! Valid CSS!