Question

I'd like to write to file in a processor smart card that accepts APDU commands. Do you know any examples in C# or smartcard sdk?

Has anyone used http://code.google.com/p/pcsc-sharp/?

Was it helpful?

Solution

First, you need to create a managed wrapper for WinScard dll. WinScard is Microsoft's implementation of PC/SC. You will need this dll to send and receive APDUs from the card.

Next, you need to know what is the OS of the smart card you are going to use. You must have the API documentation of the smart card. This will help you construct the correct APDUs for writing a file. In the smart card world, there is no single, generic way to create a file. It all depends on the card's OS.

OTHER TIPS

Subsembly is what we use. We don't do much with it, but it should get you started.

http://www.smartcard-api.com/

Here is an article in CodeProject call "A Smart Card Framework" that can help you.

pcsc-sharp mentioned at your link above is not really actively maintained. However, I have had great success with Daniel Müller's library with the same name (pcsc-sharp)

The docs here are quite good, and the library itself has worked for me very well on both 32bit and 64bit windows and linux.

I have developed my Managed Wrappers of Winscard in C# for sending APDUs and receiving Response from processor based smart cards.

If you don't have the API for the card's OS but you know that it follows ISO 7816 then you can use that standard to construct the APDU.

Let me know if u require more help on the topic. I have been working 4 years now on Smart Cards.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top