November 25th, 2001, 06:33 AM
Encoding Python CGI scripts
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
November 26th, 2001, 01:12 AM
Not sure what you mean by encoding. Doesn't adding a CGI handler to the httpd.conf file do the trick, something like this:
Then again, if you want to byte-compile the code, then see my answer to this thread on the same forum.
AddHandler cgi-script py
November 26th, 2001, 02:35 AM
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