Re: python obfuscate

2014-04-12 Thread Denis McMahon
On Thu, 10 Apr 2014 18:29:21 -0700, Wesley wrote: Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. Your business model is fucked. -- Denis McMahon, denismfmcma...@gmail.com --

Re: python obfuscate

2014-04-12 Thread Sturla Molden
CM cmpyt...@gmail.com wrote: You're saying that fear of patent trolls is yet another bad reason to obfuscate your code? But then it almost sounds like you think it is a justifiable reason. So I don't think I understand your point. Whether a patent troll has your original code or not has

Re: python obfuscate

2014-04-12 Thread CM
On Saturday, April 12, 2014 8:07:57 AM UTC-4, Sturla Molden wrote: CM cmpyt...@gmail.com wrote: You're saying that fear of patent trolls is yet another bad reason to obfuscate your code? But then it almost sounds like you think it is a justifiable reason. So I don't think I

Re: python obfuscate

2014-04-12 Thread Stefan Behnel
Sturla Molden, 11.04.2014 11:17: Joshua Landau wrote: However, if this really is your major blocker to using Python, I suggest compiling with Cython. Cython restains all the code as text, e.g. to readable generate exceptions. No, it actually doesn't. It only keeps the code in C comments,

Re: python obfuscate

2014-04-11 Thread Joshua Landau
On 11 April 2014 02:29, Wesley nisp...@gmail.com wrote: Does python has any good obfuscate? Most other people on the list will point out why such a thing is mostly pointless and you don't really need it. However, if this really is your major blocker to using Python, I suggest compiling with

Re: python obfuscate

2014-04-11 Thread Chris Angelico
On Fri, Apr 11, 2014 at 4:00 PM, Joshua Landau jos...@landau.ws wrote: But I do warn that it's adding another abstracting step that doesn't improve - it probably harms - the overall usability of the product. Further, a determined hacker can circumvent it, much as they can circumvent everything

Re: python obfuscate

2014-04-11 Thread Sturla Molden
Ian Kelly ian.g.ke...@gmail.com wrote: The only reliable way to prevent a customer from reverse-engineering your software is to not give them the software. Not really. You just need to make it so difficult that it is not worth the effort. In that case they will go away and do something else

Re: python obfuscate

2014-04-11 Thread Sturla Molden
Wesley nisp...@gmail.com wrote: Does python has any good obfuscate? Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. I googled for a while but mostly just say using pyc. Any better one? It depends on the

Re: python obfuscate

2014-04-11 Thread Sturla Molden
Joshua Landau jos...@landau.ws wrote: However, if this really is your major blocker to using Python, I suggest compiling with Cython. Cython restains all the code as text, e.g. to readable generate exceptions. Users can also still steal the extension modules and use them in their own code. In

Re: python obfuscate

2014-04-11 Thread Chris Angelico
On Fri, Apr 11, 2014 at 7:17 PM, Sturla Molden sturla.mol...@gmail.com wrote: The only way to protect your code is never to ship anything. It's worth noting, as an aside, that this does NOT mean you don't produce or sell anything. You can keep your code secure by running it on a server and

Re: python obfuscate

2014-04-11 Thread Ian Kelly
On Fri, Apr 11, 2014 at 3:17 AM, Sturla Molden sturla.mol...@gmail.com wrote: Ian Kelly ian.g.ke...@gmail.com wrote: The only reliable way to prevent a customer from reverse-engineering your software is to not give them the software. Not really... On Fri, Apr 11, 2014 at 3:17 AM, Sturla

Re: python obfuscate

2014-04-11 Thread Steven D'Aprano
On Fri, 11 Apr 2014 04:22:49 -0600, Ian Kelly wrote: On Fri, Apr 11, 2014 at 3:17 AM, Sturla Molden sturla.mol...@gmail.com wrote: Ian Kelly ian.g.ke...@gmail.com wrote: The only reliable way to prevent a customer from reverse-engineering your software is to not give them the software.

Re: python obfuscate

2014-04-11 Thread cl
Chris Angelico ros...@gmail.com wrote: On Fri, Apr 11, 2014 at 7:17 PM, Sturla Molden sturla.mol...@gmail.com wrote: The only way to protect your code is never to ship anything. It's worth noting, as an aside, that this does NOT mean you don't produce or sell anything. You can keep your

Re: python obfuscate

2014-04-11 Thread Sturla Molden
Ian Kelly ian.g.ke...@gmail.com wrote: How is that last statement different from the one I made above, that you disagreed with? Who says I disagreed? But to answer you question, it depends on the level of safety you need: Total secrecy or just enough protection to make it not worthwhile to

Re: python obfuscate

2014-04-11 Thread Chris Angelico
On Fri, Apr 11, 2014 at 10:32 PM, c...@isbd.net wrote: Chris Angelico ros...@gmail.com wrote: On Fri, Apr 11, 2014 at 7:17 PM, Sturla Molden sturla.mol...@gmail.com wrote: The only way to protect your code is never to ship anything. It's worth noting, as an aside, that this does NOT mean

Re: python obfuscate

2014-04-11 Thread Sturla Molden
c...@isbd.net wrote: It's worth noting, as an aside, that this does NOT mean you don't produce or sell anything. You can keep your code secure by running it on a server and permitting users to access it; that's perfectly safe. Perfectly? :-) Unless you have a heartbleed :) Sturla --

Re: python obfuscate

2014-04-11 Thread alister
On Thu, 10 Apr 2014 18:29:21 -0700, Wesley wrote: Hi all, Does python has any good obfuscate? Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. I googled for a while but mostly just say using pyc. Any better

Re: python obfuscate

2014-04-11 Thread Mark Lawrence
On 11/04/2014 14:06, Sturla Molden wrote: c...@isbd.net wrote: It's worth noting, as an aside, that this does NOT mean you don't produce or sell anything. You can keep your code secure by running it on a server and permitting users to access it; that's perfectly safe. Perfectly? :-)

Re: python obfuscate

2014-04-11 Thread Sturla Molden
alister alister.nospam.w...@ntlworld.com wrote: Concentrate on making the product (even) better rather than trying to hide the unhideable. I think the number one reason for code obfuscation is an ignorant boss. Another reason might be to avoid the shame of showing crappy code to the

Re: python obfuscate

2014-04-11 Thread Mark H Harris
On 4/10/14 8:29 PM, Wesley wrote: Does python has any good obfuscate? Others have answered this well, but I thought I would give you another opinion, perhaps more direct. Obfuscation (hiding) of your source is *bad*, usually done for one of the following reasons: 1) Boss is

Re: python obfuscate

2014-04-11 Thread Michael Torrie
On 04/10/2014 07:29 PM, Wesley wrote: Hi all, Does python has any good obfuscate? Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. I googled for a while but mostly just say using pyc. Any better one? Our

Re: python obfuscate

2014-04-11 Thread Chris Angelico
On Sat, Apr 12, 2014 at 1:09 AM, Mark H Harris harrismh...@gmail.com wrote: This is the age of open source in computer science. It is far better to develop a strategy and culture of openness. Everyone benefits; especially your customers. I recommend the GPLv3 license. While I

Re: python obfuscate

2014-04-11 Thread Chris Angelico
On Sat, Apr 12, 2014 at 1:19 AM, Michael Torrie torr...@gmail.com wrote: Most end users will never know or care what you build the app with, even if you have a directory full of open .py files. 99% of the users of a popular ebook app called Calibre never know or care that it's made of python

Re: python obfuscate

2014-04-11 Thread Sturla Molden
Mark H Harris harrismh...@gmail.com wrote: This is the age of open source in computer science. It is far better to develop a strategy and culture of openness. Everyone benefits; especially your customers. I recommend the GPLv3 license. I also advocate for copyleft. I would not

Re: python obfuscate

2014-04-11 Thread Sturla Molden
Mark H Harris harrismh...@gmail.com wrote: Obfuscation (hiding) of your source is *bad*, usually done for one of the following reasons: 1) Boss is paranoid and fears loss of revenues due to intellectual property theft. 2) Boss is ignorant of reverse engineering strategies

Re: python obfuscate

2014-04-11 Thread Grant Edwards
On 2014-04-11, Ian Kelly ian.g.ke...@gmail.com wrote: On Thu, Apr 10, 2014 at 8:17 PM, Wesley nisp...@gmail.com wrote: Umm, just wanna make all .py files not human readable. Or, maybe need a tool like zend in php. The only reliable way to prevent a customer from reverse-engineering your

Re: python obfuscate

2014-04-11 Thread Grant Edwards
On 2014-04-11, Chris Angelico ros...@gmail.com wrote: On Fri, Apr 11, 2014 at 7:17 PM, Sturla Molden sturla.mol...@gmail.com wrote: The only way to protect your code is never to ship anything. It's worth noting, as an aside, that this does NOT mean you don't produce or sell anything. You

Re: python obfuscate

2014-04-11 Thread Grant Edwards
On 2014-04-11, Sturla Molden sturla.mol...@gmail.com wrote: alister alister.nospam.w...@ntlworld.com wrote: Concentrate on making the product (even) better rather than trying to hide the unhideable. I think the number one reason for code obfuscation is an ignorant boss. Another reason

Re: python obfuscate

2014-04-11 Thread Joshua Landau
On 11 April 2014 10:17, Sturla Molden sturla.mol...@gmail.com wrote: Joshua Landau jos...@landau.ws wrote: However, if this really is your major blocker to using Python, I suggest compiling with Cython. Cython restains all the code as text, e.g. to readable generate exceptions. Users can

Re: python obfuscate

2014-04-11 Thread Steven D'Aprano
On Fri, 11 Apr 2014 16:27:27 +, Grant Edwards wrote: Another reason I've heard of is to try to reduce support efforts. If you distribute something that's easy to modify, then people will. The majority of people will treat your app as a black box. Of course, a small minority (either out

Re: python obfuscate

2014-04-11 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Fri, 11 Apr 2014 16:27:27 +, Grant Edwards wrote: Another reason I've heard of is to try to reduce support efforts. If you distribute something that's easy to modify, then people will. The majority of people will treat

Re: python obfuscate

2014-04-11 Thread CM
On Friday, April 11, 2014 12:13:47 PM UTC-4, Sturla Molden wrote: Mark H Harris harrismh...@gmail.com wrote: Obfuscation (hiding) of your source is *bad*, usually done for one of the following reasons: 1) Boss is paranoid and fears loss of revenues due to intellectual

python obfuscate

2014-04-10 Thread Wesley
Hi all, Does python has any good obfuscate? Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. I googled for a while but mostly just say using pyc. Any better one? Our product is deployed on Linux bed. Thanks. Wesley

Re: python obfuscate

2014-04-10 Thread Ben Finney
Wesley nisp...@gmail.com writes: Hi all, Does python has any good obfuscate? Define “good obfuscate”. What is your goal? If it is to hide your program's secrets from others, then obfuscation isn't going to help: no matter how good it is, it still needs to be readable by the runtime on the

Re: python obfuscate

2014-04-10 Thread Tobiah
On 4/10/2014 6:29 PM, Wesley wrote: Hi all, Does python has any good obfuscate? Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. I googled for a while but mostly just say using pyc. Any better one? Does that work?

Re: python obfuscate

2014-04-10 Thread Wesley
pyc has weakness: 1. easy to decompile 2. python version related, e.g. pyc from py2.5 cannot be used to py2.7 bed 在 2014年4月11日星期五UTC+8上午9时48分04秒,Tobiah写道: On 4/10/2014 6:29 PM, Wesley wrote: Hi all, Does python has any good obfuscate? Currently our company wanna release one

Re: python obfuscate

2014-04-10 Thread Wesley
Umm, just wanna make all .py files not human readable. Or, maybe need a tool like zend in php. 在 2014年4月11日星期五UTC+8上午9时41分11秒,Ben Finney写道: Wesley nisp...@gmail.com writes: Hi all, Does python has any good obfuscate? Define “good obfuscate”. What is your goal? If it

Re: python obfuscate

2014-04-10 Thread Ian Kelly
On Thu, Apr 10, 2014 at 7:48 PM, Tobiah t...@tobiah.org wrote: On 4/10/2014 6:29 PM, Wesley wrote: Hi all, Does python has any good obfuscate? Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. I googled for a while

Re: python obfuscate

2014-04-10 Thread Ian Kelly
On Thu, Apr 10, 2014 at 8:17 PM, Wesley nisp...@gmail.com wrote: Umm, just wanna make all .py files not human readable. Or, maybe need a tool like zend in php. The only reliable way to prevent a customer from reverse-engineering your software is to not give them the software. For example,

Re: python obfuscate

2014-04-10 Thread Ben Finney
Wesley nisp...@gmail.com writes: Umm, just wanna make all .py files not human readable. (Please don't top-post; instead, use interleaved replies URL:https://en.wikipedia.org/wiki/Posting_style#Interleaved_style to make the conversation legible.) You want the code not readable by which humans?

Re: python obfuscate

2014-04-10 Thread Mark Lawrence
On 11/04/2014 04:12, Ben Finney wrote: Wesley nisp...@gmail.com writes: Umm, just wanna make all .py files not human readable. (Please don't top-post; instead, use interleaved replies URL:https://en.wikipedia.org/wiki/Posting_style#Interleaved_style to make the conversation legible.)