Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.104 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.81; '*S*': 0.02; 'debug': 0.07; 'hiding': 0.09; 'moreover,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'runtime': 0.09; 'python': 0.11; 'failure.': 0.16; 'finney': 0.16; 'possesses': 0.16; 'proportion': 0.16; 'readable': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:python': 0.16; 'code.': 0.18; 'all,': 0.19; 'code,': 0.22; 'header:User-Agent:1': 0.23; 'define': 0.26; 'header:X-Complaints-To:1': 0.27; 'code': 0.31; 'writes:': 0.31; 'something': 0.35; 'beyond': 0.35; 'but': 0.35; 'there': 0.35; 'machine.': 0.36; 'recipients.': 0.36; 'problems': 0.38; 'ben': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'release': 0.40; 'how': 0.40; 'company': 0.60; 'is.': 0.60; 'establish': 0.61; 'effective': 0.61; 'matter': 0.61; 'first': 0.61; "you've": 0.63; 'developed': 0.63; 'our': 0.64; 'more': 0.64; 'worth': 0.66; 'between': 0.67; '\xe2\x80\x93': 0.77; 'drm': 0.84; 'obfuscation,': 0.84; 'received:125': 0.84; 'speech': 0.84; '\xe2\x80\x9cgood': 0.84; 'demand': 0.91; 'emotional': 0.91; '\xe2\x80\x9cthe': 0.91; 'secrets': 0.93; 'hands': 0.96 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: python obfuscate Date: Fri, 11 Apr 2014 11:41:11 +1000 References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xBD41714B X-Public-Key-Fingerprint: 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-gpg.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:4h25iS+OJxRCNB+QRPcadBaK7P8= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1397180495 news.xs4all.nl 2831 [2001:888:2000:d::a6]:49891 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70080 Wesley 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 machine. Moreover, the more effective the obfuscation, the less correspondence there is between the distributed code and the code ytou actually maintain. Attempting to debug problems will be infeasible, directly in proportion to how effective the obfuscation is. Before looking to obfuscate your code, first establish – beyond mere emotional conviction – that there actually is something in the code which is worth hiding from recipients. > Currently our company wanna release one product developed by python to > our customer. But dont's wanna others see the py code. That's impossible: the code is in the hands of the customer. If your threat model is “the person who possesses the code must not have access”, then you've lost, just as DRM is a failure. -- \ “People demand freedom of speech to make up for the freedom of | `\ thought which they avoid.” —Soren Aabye Kierkegaard (1813–1855) | _o__) | Ben Finney