Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70104

Re: python obfuscate

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'argument': 0.05; 'definition,': 0.09; 'sure,': 0.09; 'warn': 0.09; 'cc:addr:python- list': 0.11; '*only*': 0.16; 'circumvent': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'variable': 0.18; 'usability': 0.19; 'cc:addr:python.org': 0.22; 'helpful': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'possibly': 0.26; 'header:In- Reply-To:1': 0.27; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'comments,': 0.31; 'hacker': 0.31; 'probably': 0.32; 'figure': 0.32; 'run': 0.32; 'another': 0.32; 'fri,': 0.33; 'could': 0.34; "can't": 0.35; 'something': 0.35; 'anybody': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'easily': 0.37; 'step': 0.37; 'product.': 0.38; 'pm,': 0.38; 'extremely': 0.39; 'users': 0.40; 'browser': 0.61; 'our': 0.64; 'nobody': 0.68; 'overall': 0.69; 'further,': 0.74; '4:00': 0.84; 'off,': 0.84; 'rip': 0.84; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=t6ZofqPd9P5qe4onaAe+crYKGQDcqsxCNGLytYIgaBE=; b=HFGQZ+ddClIfcB3Fm6shpzLSE2aW11P/Qu2kAQafcMNRgX7UmmGlFD6gKJGi0I12rC nfH6aKAR2G/yoHG7E7/o1lUZeSVPmEwMDqHCqeeHpQcuis9pgkKrC+7F5sThEa58uddM MJzYJ3ExpbdSiT7HrD+pCiSIMR+FIFldVe+RpJeyea3HXdtNPDvBD8tt4MvnvQPk4fyQ dyFvXcSPVy8inEd9sGEqpbp8WlEd6jkzFGEN2mcZKPVqyoycDwYwKerNxHxl9C2Bf/5h Oy+KsWZAh8l6olaypQaC1OZH84lDmws1XmQ077wpdbbvx0ipdT9Y1pgNLB9MYkjtpSB1 1oTg==
MIME-Version 1.0
X-Received by 10.68.213.74 with SMTP id nq10mr5020431pbc.153.1397196628774; Thu, 10 Apr 2014 23:10:28 -0700 (PDT)
In-Reply-To <CAN1F8qX4=AFo9X61MtE=GDuQ175pfJxy-56kEsb4mD_6aA5X1w@mail.gmail.com>
References <c17a58f4-e22d-4531-beb4-d810ec4b2857@googlegroups.com> <CAN1F8qX4=AFo9X61MtE=GDuQ175pfJxy-56kEsb4mD_6aA5X1w@mail.gmail.com>
Date Fri, 11 Apr 2014 16:10:28 +1000
Subject Re: python obfuscate
From Chris Angelico <rosuav@gmail.com>
Cc python-list <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.9176.1397196638.18130.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1397196638 news.xs4all.nl 2885 [2001:888:2000:d::a6]:50733
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:70104

Show key headers only | View raw


On Fri, Apr 11, 2014 at 4:00 PM, Joshua Landau <joshua@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 else.

I had this argument with my boss at work about obfuscating our
JavaScript code. He said that he was extremely concerned that nobody
should be able to rip off all his code; I said that anybody could
still rip it off, just by using the code exactly the way the browser
would. The *ONLY* advantage you can possibly get from an obfuscation
system is that your users can't easily figure out what's going on
internally; they can still, by definition, run the program unchanged.

If you run obfuscated code through a prettifier (or a decompiler and
then a prettifier, as the case may be), you end up with something
that's practically indistinguishable from poorly-commented code. Sure,
it's not as nice to work with as something with helpful variable names
and comments, but it's far from impossible.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

python obfuscate Wesley <nispray@gmail.com> - 2014-04-10 18:29 -0700
  Re: python obfuscate Tobiah <toby@tobiah.org> - 2014-04-10 18:48 -0700
    Re: python obfuscate Wesley <nispray@gmail.com> - 2014-04-10 19:14 -0700
    Re: python obfuscate Ian Kelly <ian.g.kelly@gmail.com> - 2014-04-10 20:23 -0600
  Re: python obfuscate Ben Finney <ben+python@benfinney.id.au> - 2014-04-11 11:41 +1000
    Re: python obfuscate Wesley <nispray@gmail.com> - 2014-04-10 19:17 -0700
      Re: python obfuscate Ian Kelly <ian.g.kelly@gmail.com> - 2014-04-10 20:28 -0600
        Re: python obfuscate Grant Edwards <invalid@invalid.invalid> - 2014-04-11 16:19 +0000
      Re: python obfuscate Ben Finney <ben+python@benfinney.id.au> - 2014-04-11 13:12 +1000
      Re: python obfuscate Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-04-11 06:53 +0100
      Re: python obfuscate Sturla Molden <sturla.molden@gmail.com> - 2014-04-11 09:17 +0000
      Re: python obfuscate Ian Kelly <ian.g.kelly@gmail.com> - 2014-04-11 04:22 -0600
        Re: python obfuscate Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-04-11 11:44 +0000
      Re: python obfuscate Sturla Molden <sturla.molden@gmail.com> - 2014-04-11 12:42 +0000
  Re: python obfuscate Joshua Landau <joshua@landau.ws> - 2014-04-11 07:00 +0100
  Re: python obfuscate Chris Angelico <rosuav@gmail.com> - 2014-04-11 16:10 +1000
  Re: python obfuscate Sturla Molden <sturla.molden@gmail.com> - 2014-04-11 09:17 +0000
  Re: python obfuscate Sturla Molden <sturla.molden@gmail.com> - 2014-04-11 09:17 +0000
  Re: python obfuscate Chris Angelico <rosuav@gmail.com> - 2014-04-11 19:40 +1000
    Re: python obfuscate cl@isbd.net - 2014-04-11 13:32 +0100
      Re: python obfuscate Chris Angelico <rosuav@gmail.com> - 2014-04-11 22:47 +1000
      Re: python obfuscate Sturla Molden <sturla.molden@gmail.com> - 2014-04-11 13:06 +0000
      Re: python obfuscate Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-04-11 14:10 +0100
    Re: python obfuscate Grant Edwards <invalid@invalid.invalid> - 2014-04-11 16:22 +0000
  Re: python obfuscate alister <alister.nospam.ware@ntlworld.com> - 2014-04-11 13:07 +0000
    Re: python obfuscate Sturla Molden <sturla.molden@gmail.com> - 2014-04-11 14:00 +0000
      Re: python obfuscate Grant Edwards <invalid@invalid.invalid> - 2014-04-11 16:27 +0000
        Re: python obfuscate Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-04-12 00:49 +0000
          Re: python obfuscate Ben Finney <ben+python@benfinney.id.au> - 2014-04-12 14:52 +1000
  Re: python obfuscate Mark H Harris <harrismh777@gmail.com> - 2014-04-11 10:09 -0500
    Re: python obfuscate Chris Angelico <rosuav@gmail.com> - 2014-04-12 01:22 +1000
    Re: python obfuscate Sturla Molden <sturla.molden@gmail.com> - 2014-04-11 16:13 +0000
    Re: python obfuscate Sturla Molden <sturla.molden@gmail.com> - 2014-04-11 16:13 +0000
      Re: python obfuscate CM <cmpython@gmail.com> - 2014-04-11 22:01 -0700
        Re: python obfuscate Sturla Molden <sturla.molden@gmail.com> - 2014-04-12 12:07 +0000
          Re: python obfuscate CM <cmpython@gmail.com> - 2014-04-12 20:14 -0700
  Re: python obfuscate Michael Torrie <torriem@gmail.com> - 2014-04-11 09:19 -0600
  Re: python obfuscate Chris Angelico <rosuav@gmail.com> - 2014-04-12 01:30 +1000
  Re: python obfuscate Joshua Landau <joshua@landau.ws> - 2014-04-11 22:48 +0100
  Re: python obfuscate Denis McMahon <denismfmcmahon@gmail.com> - 2014-04-12 07:48 +0000
  Re: python obfuscate Stefan Behnel <stefan_ml@behnel.de> - 2014-04-13 06:58 +0200

csiph-web