[IronPython] IronPython for asp.net and codefiles

Jimmy Schementi Jimmy.Schementi at microsoft.com
Sun Mar 21 21:33:27 CET 2010


Pablo, what is the reason you are looking into obfuscation? Is it because you're concerned that people could make requests for your *.aspx.py files and see the Python source? By default any request for a *.aspx.py file should fail because that file extensions is not in the MIME type map on IIS. That should be enough for any obfuscation you need.

Note that C#/VB "obfuscation" through compiling to DLLs isn't really obfuscation either; if you had access to the DLL you could get all the source code. However, IIS by default refuses access to the "bin" directory. So, the methods of hiding source code are essentially the same between static and dynamic languages; refuse access to the actual source files.

Quick note on compiled modules: Microsoft.Web.Scripting.dll caches compiled Python modules, so on the first visit to an ASPX page that uses IronPython it compiles the code-behind .aspx.py file in memory, and subsequent visits reuses the compiled file. The Python file is only re-compiled if it's changed between requests.

~js

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Dody Gunawinata
Sent: Sunday, March 21, 2010 1:49 AM
To: Discussion of IronPython
Subject: Re: [IronPython] IronPython for asp.net and codefiles

If you want to hide your logic from the source, move as much of the functionality to a dll, whether it is a static or ironpython dll. I don't think IronPython for ASP.Net supports compilable asp.net<http://asp.net>.
On Sat, Mar 6, 2010 at 4:52 PM, Pablo Dalmazzo <pablodalma93 at hotmail.com<mailto:pablodalma93 at hotmail.com>> wrote:
Hi there,

now I got to work the dlls and I did a small app. which turns my asp.net<http://asp.net> .py codefile into 2 pieces, a .py codefile which makes only functions calls to a dll with the actual logic code. But I was wondering why IronPython for asp.net<http://asp.net> was designed without having in mind to allow the .aspx files to be tied with dlls for the sourcecode, for allowing obfuscation just like it's possible to make in VB.NET<http://VB.NET> or C#. Or may be it just wasnt easy at all to do that for IronPython? Is the technical explanation too complicated or may I know about it? Is there information about this somewhere?

Greetins, Pablo

________________________________
Tu Hotmail guarda el borrador que estás escribiendo para que no pierdas tu mensaje. Conocé cómo<http://www.descubrewindowslive.com/hotmail/actualizacion-guardado.asp>

_______________________________________________
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



--
nomadlife.org<http://nomadlife.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100321/36ca4a40/attachment.html>


More information about the Ironpython-users mailing list