Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: alister Newsgroups: comp.lang.python Subject: Re: Pyarmor, guard your python scripts Date: Fri, 18 Sep 2015 10:06:37 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 64 Message-ID: References: <42f12eba-2504-4a97-a5bc-e7b9bfe2f1f9@googlegroups.com> <22dc806f-f3f4-4e5d-a939-5ecc5e4bf946@googlegroups.com> <74f43ca8-fc25-4622-8f18-784b71f781af@googlegroups.com> <63bd6da4-50ad-4b0c-bff7-5b5d26d161b3@googlegroups.com> NNTP-Posting-Host: i/OG3EjHvs04xHrpB0XnAg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.python:96814 On Fri, 18 Sep 2015 01:31:50 -0700, Jondy Zhao wrote: > On Friday, September 18, 2015 at 4:08:57 PM UTC+8, alister wrote: >> On Thu, 17 Sep 2015 22:38:32 -0700, Jondy Zhao wrote: >> >> > On Friday, September 18, 2015 at 1:02:09 PM UTC+8, Chris Angelico >> > wrote: >> >> On Fri, Sep 18, 2015 at 12:40 PM, Jondy Zhao >> >> wrote: >> >> > The loader only can see the compiled scripts as ast nodes, even if >> >> > the load some tools could dump the separated ast node to bytecode >> >> > and de-compile it, think of one script is divided into thousands >> >> > of pieces, it's not easy to assemble them again. >> >> > >> >> > The final solution is to distribute the loader with encrypted >> >> > scripts, only my own loader can run the encrypted scripts. >> >> >> >> So anyone who's going to run your program needs your loader. If >> >> someone wants to redistribute your code, s/he can simply distribute >> >> the loader as well - and you're right back where you started. You >> >> have still achieved nothing in terms of preventing redistribution. >> >> >> >> Please do not do this. Not only are you not achieving the goal you >> >> think you are, you're making a mess for people to have to deal with. >> >> >> >> ChrisA >> > >> > But the loader and the encrypted scripts could be bind to one fixed >> > computer when I distribute them to end users, so the end users can't >> > redistribute them to any other machines. Actually this is what some >> > commercial software does. >> >> Making life difficult for legitimate users whilst causing Pirates minor >> difficulties at best (crack once distribute many).. >> >> Copyright legislation is what provides you with protection if you need >> it >> >> Commercial users do not risk running unlicensed software because of the >> damage a piracy case against them would cause to their business, not >> because they cant get it! > > I agree with you absolutely. Maybe I can show you the purpose of Pyarmor > by the following case: > > When we express a box, we can close this box with a lock, this equals > encrypted scripts, or we just close the box without a lock. Pyarmor is > just as this lock, it make the box more security, but it can not protect > the box completely. And if the person at the other end looses the key it causes a great deal of trouble. Alternatively the highway man that holds up the delivery truck simply takes a pair of bolt cutters to the lock... yes it stops a casual snooper but that is all -- A statesman is a politician who's been dead 10 or 15 years. -- Harry S. Truman