Discussion:
[Tutor] [Web] Using pyCrypto - pyscard
Olivier Roger
2009-01-24 15:10:04 UTC
Permalink
Hello,

I have a question concerning the use of python to make web application.
I don't know if it is possible. I would like to create an applet capable of
using the client smardcard (with pyscard/pyCrypto module) reader to read and
display the contained data on the page.

I already have a simple python application that does it. My question is the
following: Is it possible to port it into an applet?

Thank in advance,

Olivier
Kent Johnson
2009-01-24 21:49:07 UTC
Permalink
On Sat, Jan 24, 2009 at 10:10 AM, Olivier Roger
Post by Olivier Roger
Hello,
I have a question concerning the use of python to make web application.
I don't know if it is possible. I would like to create an applet capable of
using the client smardcard (with pyscard/pyCrypto module) reader to read and
display the contained data on the page.
I already have a simple python application that does it. My question is the
following: Is it possible to port it into an applet
Presuming that by 'applet' you mean something that runs client-side in
a web browser, your options for doing this with Python are very
limited.
- You can use IronPython within MS Silverlight
- There may be ways to do this with Firefox and IE but they are obscure

Kent
Alan Gauld
2009-01-24 23:09:11 UTC
Permalink
Post by Olivier Roger
I have a question concerning the use of python to make web
application.
I don't know if it is possible. I would like to create an applet capable of
using the client smardcard (with pyscard/pyCrypto module) reader to read and
display the contained data on the page.
I already have a simple python application that does it. My question is the
following: Is it possible to port it into an applet?
Let me check my understanding...

This existing application runs on the same computer as the card
reader, right? Presumably it is doing some kind of low level OS
calls to read the hardware? If that's the case you probably couldn't
use an applet even if you could write it since the applet wouldn't
normally be able to access the local PCs hardware - way too
much security risk!

If on the other hand the card reader is on a server then you don't
need an applet you need a web app on the server that calls your
existing application then displays the result as a web page.

Does that help?
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
Loading...