tags:

views:

1020

answers:

4

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/?

+1  A: 

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

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

theG
+1  A: 

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

Baget
+1  A: 

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.

yanong_banikanhon
have you used pcsc-sharp? (http://code.google.com/p/pcsc-sharp/)
Piotr Czapla
I have not actually used pcsc-sharp. In my previous commercial application, I have created the pc/sc wrapper myself. pcsc-sharp is under 2-clause BSD license and there are some provisions in the clause that my client doesn't like.
yanong_banikanhon
A: 

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.

-- Anish

Anish Jhaveri
Thank you. But we manage to create our own wrapper.
Piotr Czapla