Re: Technical Answer - Protecting code in python

2007-03-22 Thread Gabriel Genellina
En Thu, 22 Mar 2007 14:04:04 -0300, Bart Willems <[EMAIL PROTECTED]> escribió: >> chown scriptuser script.py # a unique user >> chmod a-rwx script.py >> chmod u+rx script.py > > If it works on the target machine - I am under the assumption that the > client is some kind of government office - m

Re: Technical Answer - Protecting code in python

2007-03-22 Thread Bart Willems
Aaah, *now* we're getting somewhere... :-) >> All he wants is something that turns 'readable, >> changeable python' into 'unreadable, immutable python'. > > chown scriptuser script.py # a unique user > chmod a-rwx script.py > chmod u+rx script.py > > I believe that fully meets the functional r

Re: Technical Answer - Protecting code in python

2007-03-22 Thread Thomas Heller
Bart Willems schrieb: > Aaah, *now* we're getting somewhere... :-) > >>> All he wants is something that turns 'readable, >>> changeable python' into 'unreadable, immutable python'. >> >> chown scriptuser script.py # a unique user >> chmod a-rwx script.py >> chmod u+rx script.py >> >> I believe

Re: Technical Answer - Protecting code in python

2007-03-22 Thread Steven D'Aprano
On Thu, 22 Mar 2007 09:11:51 +1100, Ben Finney wrote: > "Steven D'Aprano" <[EMAIL PROTECTED]> writes: > >> Is your program valuable? Is it worth money? Then the 90% of script >> kiddies will just wait three days, and download the program off the >> Internet after the real hackers have broken your

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Steven D'Aprano
On Wed, 21 Mar 2007 22:59:46 -0700, flit wrote: > Going back in the beginning I said : > > "So PLEASE, don't try to convince me about the social / economical / > open source / give to all / be open / all people are honest until > prove contrary / dance with the rabbits... " I have done NONE of

Re: Technical Answer - Protecting code in python

2007-03-21 Thread flit
I didn´t reply to the last D´Aprano reply just to avoid this kind of social war. And yes, I know that if I want 100% security I should not distribute my code. And there is a better way that is not doing any code to be more secure and bug-free (now I am using irony). And no, I am not supporter of so

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Steven D'Aprano
On Wed, 21 Mar 2007 20:59:57 -0400, Bart Willems wrote: > Or the consultant wants to be sure that the two dimwitted nimcumpoops at > the office who /think/ they can write code don't screw up the script > when they're trying to 'fix' or 'improve' something. And blame the > consultant if the scri

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Bart Willems
Steven D'Aprano wrote: > Protect it from what? Viruses? Terrorists? The corrupt government? Your > ex-wife cutting it up with scissors? People who want to copy it? People > who will look at your code and laugh at you for being a bad programmer? > > Until you tell us what you are trying to protect

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Paul Boddie
flit wrote: > > OK, that kind of answer is what I was trying to avoid.. Perhaps, but it's possible that people get tired of answering the same questions over and over again. A search in comp.lang.python for "protect source code" will provide lots of answers, some as purely technical as you desire.

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Ben Finney
"Steven D'Aprano" <[EMAIL PROTECTED]> writes: > Is your program valuable? Is it worth money? Then the 90% of script > kiddies will just wait three days, and download the program off the > Internet after the real hackers have broken your protection. The real hackers wouldn't be doing that. The cr

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Bruno Desthuilliers
flit a écrit : > First I wanna thanks the all people who gives good contribution to > this thread, thank you all.. > Now I have something more to say: > > OK, that kind of answer is what I was trying to avoid.. > (snip half-angry answers to Steven) Flit, whether you like the way Steven expresses

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Bruno Desthuilliers
gtb a écrit : > On Mar 21, 8:36 am, "flit" <[EMAIL PROTECTED]> wrote: > (snip) >>2 - If I put the code in web like a web service, how can I protect my >>code from being ripped? There is a way to avoid someone using my site >>and ripping the .py files? >> >>Thanks and sorry for the introduction >

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Carsten Haese
On Wed, 2007-03-21 at 11:33 -0700, gtb wrote: > On Mar 21, 8:36 am, "flit" <[EMAIL PROTECTED]> wrote: > > 2 - If I put the code in web like a web service, how can I protect my > > code from being ripped? There is a way to avoid someone using my site > > and ripping the .py files? > > Maybe an appli

Re: Technical Answer - Protecting code in python

2007-03-21 Thread gtb
On Mar 21, 8:36 am, "flit" <[EMAIL PROTECTED]> wrote: > Hello All, > > I have a hard question, every time I look for this answer its get out > from the technical domain and goes on in the moral/social domain. > First, I live in third world with bad gov., bad education, bad police > and a lot of tax

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Steven D'Aprano
On Wed, 21 Mar 2007 09:56:12 -0700, flit wrote: > First I wanna thanks the all people who gives good contribution to > this thread, thank you all.. But they haven't. They've given answers to an ill-posed question. How can anyone tell you how to "protect code" when you haven't told us what you wan

Re: Technical Answer - Protecting code in python

2007-03-21 Thread flit
First I wanna thanks the all people who gives good contribution to this thread, thank you all.. Now I have something more to say: OK, that kind of answer is what I was trying to avoid.. On Mar 21, 1:23 pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Wed, 21 Mar 2007 06:36:16 -0700, flit wrote

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Steven D'Aprano
On Wed, 21 Mar 2007 06:36:16 -0700, flit wrote: > 1 - There is a way to make some program in python and protects it? I > am not talking about ultra hard-core protection, just a simple one > that will stop 90% script kiddies. Protect it from what? Viruses? Terrorists? The corrupt government? Your

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Carsten Haese
On Wed, 2007-03-21 at 06:36 -0700, flit wrote: > Hello All, > > I have a hard question, every time I look for this answer its get out > from the technical domain and goes on in the moral/social domain. > First, I live in third world with bad gov., bad education, bad police > and a lot of taxes and

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Bart Ogryczak
On Mar 21, 2:36 pm, "flit" <[EMAIL PROTECTED]> wrote: > Now the technical question: > > 1 - There is a way to make some program in python and protects it? I > am not talking about ultra hard-core protection, just a simple one > that will stop 90% script kiddies. Freeze. That should be hard enough

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Diez B. Roggisch
flit wrote: > Hello All, > > I have a hard question, every time I look for this answer its get out > from the technical domain and goes on in the moral/social domain. > First, I live in third world with bad gov., bad education, bad police > and a lot of taxes and bills to pay, and yes I live in a

Re: Technical Answer - Protecting code in python

2007-03-21 Thread Tom Wright
flit wrote: > 1 - There is a way to make some program in python and protects it? I > am not talking about ultra hard-core protection, just a simple one > that will stop 90% script kiddies. Put it in an executable? It's more hidden than protected, but it will stop a fair few non-experts. I use and

Technical Answer - Protecting code in python

2007-03-21 Thread flit
Hello All, I have a hard question, every time I look for this answer its get out from the technical domain and goes on in the moral/social domain. First, I live in third world with bad gov., bad education, bad police and a lot of taxes and bills to pay, and yes I live in a democratic "state" (corr