Ohad's Blog

Lets talk about .net !

Mirror at:
blogs.microsoft.co.il

News

         Ohad Israeli's Facebook profile
      

C# Code Snippts

Favorite Blogs

Israeli .Net Bloggers

Using Smart Card with C#

I was looking for a way to use GemPlus 433 Smart card reader through C# and thought it shouldn't be hard to find some samples... after security these days is a main business issue to all of us.

well i was wrong ! GemPlus has an sdk at their site but this sdk doesn't have any samples in .net all they have are C samples which didn't have much documentation. 

I needed more... so after a long search I came up with a sample on GotDotNet : C# Windows Form Demonstrating SmartCards Using PC/SC which was OK but I really needed some more functionality and didn't want to invent everything from the start interoping WinScard ...

I've noticed in one of the forums on GotDotNet an invitation to evaluate a Smart Card framework for managed .NET applications I thought to my self well... what do i have to loose... and sent this guy a letter... In return I got a full working component for evaluation purposes and.... Its a life saver !

Andreas Selle had implemented a great framework for working with Smart Cards using C# and it comes even with sample code !

Highly recommended solution for working with smart cards !

Update: Andreas just published version 2.0 of the framework !
             you can download an evaluation version over here

Update: Andreas just published version 3.0 of the framework
The following major features have been added:

* Special support for SLE 4418, SLE 4428, SLE 4432, SLE 4442, and compatible memory cards with many card readers. For example: Reiner SCT cyberJack (through PC/SC and CT-API); Various SCM Readers (through MCard API), all MKT

(CT-API) compliant readers, Athena ASEDrive III (through PC/SC) and many others.

* Special support for ACR 80 reader from Advanced Card Systems Ltd. based on ACR80.DLL.

* Special support for memory card access through the SCM Microsystems Inc.

MCard API.

* Framework enhanced to standardize and ease development of card services. A standard card service should now derived from the CardHandle class. The CardCriteria are then used to hook up a card service with its card. A source code example of a simple card service is provided by the modified Taschenkartenleser example. More examples will be provided in a future release.

* The CardTerminalConfigurator was enhanced to support configuration of ACR 80 card readers and enable usage of MCARD API with SCM PC/SC card readers.

Posted: Jun 08 2004, 09:23 PM by Ohad Israeli | with 15 comment(s)
Filed under: ,

Comments

Memi Lavi said:

We are dealing a lot with smart cards, and it's really nice to know there is a managed framework for that. We've just started to plan our migration path to .NET (from plain old ASP...), and I hope it'll help shorten our dev time.
Alas' Looks like the site is Offline...

BTW - welcome! Looks like we the Israelis are becoming a critical mass in the blogsphere.
# June 8, 2004 3:07 PM

Ohad Israeli said:

Have you been working with GemPlus card readers ?

ps. Andreas site is up again !.

Ohad
# June 10, 2004 8:31 AM

Memi Lavi said:

Nope. We've been working with OTI cards & readers.
# June 11, 2004 11:58 AM

Andreas Selle said:

Hi,

thanks for the recommendation.

Today I released version 2.0 of the SmartCard Subsembly. An evaluation version can now be downloaded straight from the homepage.
# June 17, 2004 6:31 AM

Lance Rasmussen said:

Note:

Andreas' Framework is great and he supports his software very well and with strong knowledge.
I would heartily reccomend.

Lance
# July 16, 2004 3:31 AM

Adnan Siddiqi said:

hi

I wonder whether it`s based on winscard.dll or something else?

Also,isnt there any COM component so that i could use it with other lanfuages like VB,C++ or QT?

thanks
-adnan
# July 28, 2004 1:21 AM

Andreas Selle said:

Hi,

I just released the SmartCard Subsembly version 3.0. As usual, an evaluation version can be downloaded from my homepage at http://subsembly.com/

Have fun.

Andreas
# August 6, 2004 6:37 AM

Sreedhar said:

Can Smart Card Sub-assembly be used for ASP.NET Application Development?
# June 15, 2006 11:46 PM

K.Serdar AY said:

I have just started to deal with smart cards 4 days ago. I wanted to use them with c#.net and I think I found the exact solution "Subsembly". I downloaded the evaluation version. I wonder if there are more sample source codes in licenced version.???
# June 22, 2006 6:39 AM

Andreas Selle said:

I just released the new Version 4.0 of the Subsembly SmartCard API. In addition I launched a new homepage fully dedicated to the product at http://www.smartcard-api.com/

The new version can now also be used from within the Internet Explorer and thus be deployed with an ASP.NET solution.

# February 9, 2007 11:46 AM

Mohamed Iqbal said:

Hi all,

Whether Subsembly SmartCard API can be used for read and write operation with contactless cards like mifare 1k and 4k.

# April 6, 2007 12:25 AM

Hyder said:

Is contactless cards can be accessed with this smardcard API.

# April 12, 2007 6:07 AM

Kien said:

Why the sample (http://www.smartcard-api.com/)program can't detect SLE 4428 card?

Can any help me?

# March 14, 2008 4:50 AM

Cory said:

This doesn't appear to work with SLE4442 either. Keen to license it but doesn't work... or does it?

# July 5, 2008 9:17 PM

pkershin said:

How is it possible to retrieve serial number from the smart card?

# September 14, 2008 6:48 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)