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


Groups > comp.lang.python > #78449

Re: Obscuring Python source from end users

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!hq-usenetpeers.eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed2.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.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'that?': 0.05; 'subject:Python': 0.06; 'distributing': 0.07; 'reformat': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; "wouldn't": 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'least.': 0.16; 'readable': 0.16; 'shorten': 0.16; 'demonstrate': 0.16; 'exception': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'code.': 0.18; 'possible,': 0.19; 'producing': 0.19; 'code,': 0.22; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'nearly': 0.26; 'excel': 0.26; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'comments,': 0.31; 'helpful.': 0.31; 'sep': 0.31; 'subject:end': 0.31; 'subject:users': 0.31; 'cases': 0.33; 'subject:from': 0.34; 'could': 0.34; 'something': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'interact': 0.36; 'project': 0.37; 'pm,': 0.38; 'that,': 0.38; 'users': 0.40; 'remove': 0.60; 'satisfied': 0.81; '5:36': 0.84; 'crunches': 0.84; 'subject:source': 0.84; 'to:none': 0.92; 'audit': 0.93
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=s2xNeQTMJzO2sViJg9x3YBLhU8wtydmGRILNho4wb08=; b=rXG21ngrdT1SjC2NMUWw9pek7EiWCAxoPOqntOLTbYO+JxnOGd6gyuA8IZZ84h6Hax qU9jgu/+EGYw701Gpb2ZUVU6bRfKUrKetcc5K2/EJep9HlevzXJU7vVbLDD8PSKN3X8d T6g/r7u34Ctaf5dK6bCVa48zTgqZ06fFpcdHOnDxYz4FvKRTLAkAHM9sg5OzCeMDccSp e89jNzILvZ/OaPI06eDHkDljwZPLwUfZHiPUFHyt0y/pTd154PZDernetXGc3wjzdMos FyzVqTlnE60pYXq2/Ev+hWsDDWfmJC5LRaY4naXJilCqyzM4EQx2P29jGKECnccO7JyG 2A6Q==
MIME-Version 1.0
X-Received by 10.152.7.73 with SMTP id h9mr5785085laa.27.1411977163816; Mon, 29 Sep 2014 00:52:43 -0700 (PDT)
In-Reply-To <89381545-5edc-4f85-a4b8-86eebfdf34ee@googlegroups.com>
References <89381545-5edc-4f85-a4b8-86eebfdf34ee@googlegroups.com>
Date Mon, 29 Sep 2014 17:52:43 +1000
Subject Re: Obscuring Python source from end users
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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.14461.1411977165.18130.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1411977165 news.xs4all.nl 2947 [2001:888:2000:d::a6]:46742
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 4349
X-Received-Body-CRC 2769626424
Xref csiph.com comp.lang.python:78449

Show key headers only | View raw


On Mon, Sep 29, 2014 at 5:36 PM,  <norman.ives@gmail.com> wrote:
> I have a project that involves distributing Python code to users in an organisation. Users do not interact directly with the Python code; they only know this project as an Excel add-in.
>
> Now, internal audit takes exception in some cases if users are able to see the source code.

The solution is to fix your internal audit. There's fundamentally no
way to hide the source code, and it's going to add complexity.
Demonstrate that it could take you a large number of man-hours and
achieve little, and just declare that the source code IS what you
want.

Alternatively, you could do a source-level reformat that crunches
everything down as much as possible, while still producing
syntactically-identical source code. Remove all the comments, shorten
local names to one letter, etc. That would result in something that,
while still perfectly executable, won't be nearly as helpful. It
wouldn't be nice readable source code, at least. Would your audit be
satisfied with that?

ChrisA

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


Thread

Obscuring Python source from end users norman.ives@gmail.com - 2014-09-29 00:36 -0700
  Re: Obscuring Python source from end users Chris Angelico <rosuav@gmail.com> - 2014-09-29 17:52 +1000
    Re: Obscuring Python source from end users norman.ives@gmail.com - 2014-09-29 01:41 -0700
      Re: Obscuring Python source from end users Chris Angelico <rosuav@gmail.com> - 2014-09-29 18:55 +1000
      Re: Obscuring Python source from end users Chris Angelico <rosuav@gmail.com> - 2014-09-29 20:14 +1000
  Re: Obscuring Python source from end users alister <alister.nospam.ware@ntlworld.com> - 2014-09-29 08:42 +0000
  Re: Obscuring Python source from end users Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-09-29 21:47 +1000
    Re: Obscuring Python source from end users Sturla Molden <sturla.molden@gmail.com> - 2014-09-29 14:51 +0000
    Re: Obscuring Python source from end users Dan Stromberg <drsalists@gmail.com> - 2014-10-01 15:06 -0700
      Re: Obscuring Python source from end users Marko Rauhamaa <marko@pacujo.net> - 2014-10-02 08:17 +0300
        Re: Obscuring Python source from end users Terry Reedy <tjreedy@udel.edu> - 2014-10-02 03:19 -0400
        Re: Obscuring Python source from end users Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-02 17:22 +1000
  Re: Obscuring Python source from end users Sturla Molden <sturla.molden@gmail.com> - 2014-09-29 14:53 +0000
    Re: Obscuring Python source from end users Johannes Bauer <dfnsonfsduifb@gmx.de> - 2014-10-02 09:50 +0200
      Re: Obscuring Python source from end users Chris Angelico <rosuav@gmail.com> - 2014-10-02 18:32 +1000

csiph-web