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


Groups > comp.lang.python > #96645

Re: Pyarmor, guard your python scripts

Path csiph.com!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!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.048
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; '16,': 0.03; 'anyway.': 0.04; 'cc:addr:python-list': 0.09; 'wrong,': 0.09; 'yeah,': 0.09; 'subject:python': 0.14; 'wed,': 0.15; '2:40': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'gonna': 0.16; 'iirc': 0.16; 'wrote:': 0.16; 'cheap': 0.18; '(in': 0.18; '>>>': 0.20; 'windows': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'sep': 0.22; 'file.': 0.22; 'am,': 0.23; 'code,': 0.23; 'installation': 0.23; 'ease': 0.23; 'errors': 0.23; 'header:In-Reply-To:1': 0.24; 'hosting': 0.25; '(which': 0.26; 'chris': 0.26; 'mostly': 0.27; 'packaging': 0.27; 'right.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'about.': 0.29; 'agreed.': 0.29; 'thinks': 0.29; 'code:': 0.29; 'connection': 0.30; 'code': 0.30; 'minimal': 0.30; 'probably': 0.31; 'anyone': 0.32; '[1]': 0.32; 'computer.': 0.32; 'run': 0.33; 'source': 0.33; 'accessible': 0.33; 'curious': 0.33; 'idle': 0.33; 'suddenly': 0.33; 'case,': 0.34; 'received:google.com': 0.35; 'something': 0.35; "isn't": 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'development.': 0.36; "wasn't": 0.36; 'subject:: ': 0.37; 'really': 0.37; 'agree': 0.37; 'several': 0.38; 'someone': 0.38; 'sure': 0.39; 'application': 0.39; 'protection': 0.60; 'your': 0.60; 'skip:u 10': 0.61; 'provide': 0.61; 'today,': 0.62; 'more': 0.63; 'safe': 0.63; 'times': 0.63; 'secure.': 0.66; 'internet': 0.70; 'subject:your': 0.75; '(oh': 0.84; 'chrisa': 0.84; 'failures.': 0.84; 'mind)': 0.84; 'toy': 0.84; 'viable': 0.84; 'to:none': 0.91; 'died': 0.91; 'edwards': 0.91; 'thoroughly': 0.91; 'thing,': 0.93; 'serious': 0.97
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=Ni8T4ymEedSj/qcM3KFBdwxS/W6ZvB1MJs1Aep4Aets=; b=bOQ2a1l6xquKggWtP9u5ALBUFCX7L/aEIIQ3qg8kfYm2/CoDiYAxnyZyI8G8zEHaQ7 IkHU/0hRJu1o7EU/F/myPDhSGFzHOlPjp66xuEo8S8HbnjsMnJoblrZsH+1XV6rW9QOH uUCmjvD8Bl4bZ0rEjyOzN/WDxgNyAe+y9TpGcuz67Tqdl4joONuVCSw2A/RTOnsel3Pd Bohxgl+Mpj2RS5wymmEb9dvMMhvXYQkstnnUQmcXhe9jlnXfzkU+n/7G7n4HMjJW75gt ZCOjM96IuZw/qPI40JxWysUqKzpoyF86gx94Tc0iFX/0ym4WOT7OMgx2rq6Bd6AVQ9uC AwCg==
MIME-Version 1.0
X-Received by 10.107.132.144 with SMTP id o16mr35526408ioi.31.1442336376358; Tue, 15 Sep 2015 09:59:36 -0700 (PDT)
In-Reply-To <mt9hm5$l2u$1@reader1.panix.com>
References <42f12eba-2504-4a97-a5bc-e7b9bfe2f1f9@googlegroups.com> <mailman.588.1442310540.8327.python-list@python.org> <mt95mr$9i2$1@reader1.panix.com> <mailman.594.1442323774.8327.python-list@python.org> <mt9ggf$juo$1@reader1.panix.com> <mailman.602.1442334569.8327.python-list@python.org> <mt9hm5$l2u$1@reader1.panix.com>
Date Wed, 16 Sep 2015 02:59:36 +1000
Subject Re: Pyarmor, guard your python scripts
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.20+
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.603.1442336379.8327.python-list@python.org> (permalink)
Lines 48
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1442336379 news.xs4all.nl 23806 [2001:888:2000:d::a6]:51972
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 6272
X-Received-Body-CRC 2139565964
Xref csiph.com comp.lang.python:96645

Show key headers only | View raw


On Wed, Sep 16, 2015 at 2:40 AM, Grant Edwards <invalid@invalid.invalid> wrote:
> On 2015-09-15, Chris Angelico <rosuav@gmail.com> wrote:
>>
>>> I you may be underestimating the laziness and overestimating the
>>> cleverness of most people. ;)
>>
>> Heh :) But in that case, you can probably get away with just
>> zipimport. Deflation sure isn't encryption, but the code is pretty
>> thoroughly concealed anyway.
>
> I agree completely.  There are three categories of protection:
>
>   1) The program never leaves your computer.
>
>   2) Obfuscation to deter the idle curious from mucking about.
>
>   3) Put the source code on the interwebs.

Agreed. #3 is the protection that I use for most of my code, and it's
protected me several times from a threat that's far more serious (in
my mind) than someone ripping off my code: it's kept my code safe from
hard drive failures. Yeah, nothing like seeing errors spewing off a
drive that's suddenly died to make you appreciate distributed source
control! (Oh look, my private key is no longer accessible. How
terrible... I have to go to GitHub and register a new public key
before I can continue development. That's gonna set me back... five
whole minutes!)

#1 wasn't really viable until the always-on internet connection became
a normal thing, but today, it's actually pretty easy. Shove your
application up onto cheap hosting somewhere, and make it accessible
via the web... anyone can do it, and your code needs no obfuscation to
be truly secure.

> In category 2 you find the single-file/directory-app bundlers[1]
> (which IIRC mostly use something like zipimport) and various other
> "encryption" wrappers.  They all provide pretty much the same minimal
> "protection".
>
> [1] Most of which are intended to provide ease of distribution and
>     installation -- the obfuscation is mostly a side-effect.

Right. Anyone who thinks zipapp is good for security is wrong, but it
sure can be handy for packaging up a one-click "here, download and run
this" Windows .exe file. Any obfuscation should be seen as a freebie,
on par with the toy you get in a fast-food meal.

ChrisA

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


Thread

Pyarmor, guard your python scripts Jondy Zhao <jondy.zhao@gmail.com> - 2015-09-15 02:21 -0700
  Re: Pyarmor, guard your python scripts Ben Finney <ben+python@benfinney.id.au> - 2015-09-15 19:36 +1000
    Re: Pyarmor, guard your python scripts Jondy Zhao <jondy.zhao@gmail.com> - 2015-09-17 18:58 -0700
      Re: Pyarmor, guard your python scripts Chris Angelico <rosuav@gmail.com> - 2015-09-18 12:05 +1000
        Re: Pyarmor, guard your python scripts Jondy Zhao <jondy.zhao@gmail.com> - 2015-09-17 19:51 -0700
      Re: Pyarmor, guard your python scripts Ben Finney <ben+python@benfinney.id.au> - 2015-09-18 12:27 +1000
        Re: Pyarmor, guard your python scripts Jondy Zhao <jondy.zhao@gmail.com> - 2015-09-17 19:59 -0700
          Re: Pyarmor, guard your python scripts Ben Finney <ben+python@benfinney.id.au> - 2015-09-18 13:06 +1000
            Re: Pyarmor, guard your python scripts Jondy Zhao <jondy.zhao@gmail.com> - 2015-09-17 22:55 -0700
              Re: Pyarmor, guard your python scripts Chris Angelico <rosuav@gmail.com> - 2015-09-18 17:27 +1000
                Re: Pyarmor, guard your python scripts Jondy Zhao <jondy.zhao@gmail.com> - 2015-09-18 01:05 -0700
                Re: Pyarmor, guard your python scripts Chris Angelico <rosuav@gmail.com> - 2015-09-18 18:16 +1000
              Re: Pyarmor, guard your python scripts sohcahtoa82@gmail.com - 2015-10-05 12:44 -0700
  Re: Pyarmor, guard your python scripts Chris Angelico <rosuav@gmail.com> - 2015-09-15 19:48 +1000
    Re: Pyarmor, guard your python scripts Grant Edwards <invalid@invalid.invalid> - 2015-09-15 13:16 +0000
      Re: Pyarmor, guard your python scripts Chris Angelico <rosuav@gmail.com> - 2015-09-15 23:29 +1000
        Re: Pyarmor, guard your python scripts Grant Edwards <invalid@invalid.invalid> - 2015-09-15 16:20 +0000
          Re: Pyarmor, guard your python scripts Chris Angelico <rosuav@gmail.com> - 2015-09-16 02:29 +1000
            Re: Pyarmor, guard your python scripts Grant Edwards <invalid@invalid.invalid> - 2015-09-15 16:40 +0000
              Re: Pyarmor, guard your python scripts Chris Angelico <rosuav@gmail.com> - 2015-09-16 02:59 +1000
    Re: Pyarmor, guard your python scripts Jondy Zhao <jondy.zhao@gmail.com> - 2015-09-17 19:40 -0700
      Re: Pyarmor, guard your python scripts Chris Angelico <rosuav@gmail.com> - 2015-09-18 15:01 +1000
        Re: Pyarmor, guard your python scripts Jondy Zhao <jondy.zhao@gmail.com> - 2015-09-17 22:38 -0700
          Re: Pyarmor, guard your python scripts alister <alister.nospam.ware@ntlworld.com> - 2015-09-18 08:08 +0000
            Re: Pyarmor, guard your python scripts Jondy Zhao <jondy.zhao@gmail.com> - 2015-09-18 01:31 -0700
              Re: Pyarmor, guard your python scripts alister <alister.nospam.ware@ntlworld.com> - 2015-09-18 10:06 +0000
                Re: Pyarmor, guard your python scripts Jondy Zhao <jondy.zhao@gmail.com> - 2015-09-18 04:41 -0700
                Re: Pyarmor, guard your python scripts Ben Finney <ben+python@benfinney.id.au> - 2015-09-18 21:52 +1000
                Re: Pyarmor, guard your python scripts Lorenzo Sutton <lorenzofsutton@gmail.com> - 2015-09-18 15:07 +0200
                Re: Pyarmor, guard your python scripts Jondy Zhao <jondy.zhao@gmail.com> - 2015-09-18 06:57 -0700
                Re: Pyarmor, guard your python scripts Josef Pktd <josef.pktd@gmail.com> - 2015-10-05 08:55 -0700
                Re: Pyarmor, guard your python scripts Ben Finney <ben+python@benfinney.id.au> - 2015-10-06 09:25 +1100
                Re: Pyarmor, guard your python scripts Josef Pktd <josef.pktd@gmail.com> - 2015-10-06 07:35 -0700

csiph-web