|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Encoding Python CGI scripts
Hello,
is there any way to encode Python CGI scripts so that the code is not readily exposed on the server? Something like what Zend encoder does for PHP...... Thank you in advance for your answers Nadik |
|
#2
|
||||
|
||||
|
Not sure what you mean by encoding. Doesn't adding a CGI handler to the httpd.conf file do the trick, something like this:
Code:
<Directory /usr/local/apache/htdocs/myscripts> Options +ExecCGI </Directory> AddHandler cgi-script py Then again, if you want to byte-compile the code, then see my answer to this thread on the same forum. |
|
#3
|
|||
|
|||
|
Quote:
Byte-compiling the Python code doesn't hide it enough. It's easily decompiled back into the source using decompyle.
__________________
Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems. - Jamie Zawinski, in comp.lang.emacs |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Encoding Python CGI scripts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|