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


Groups > comp.lang.python > #90038

DRM is self-defeating (was: Encrypt python files)

From Ben Finney <ben+python@benfinney.id.au>
Subject DRM is self-defeating (was: Encrypt python files)
Date 2015-05-06 17:41 +1000
References <686d08c9-adb7-4f0b-af8d-4d37d9ad4c0e@googlegroups.com> <72bd42d6-6926-44ce-bd6f-956ce40afe08@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.161.1430898121.12865.python-list@python.org> (permalink)

Show all headers | View raw


Palpandi <palpandi111@gmail.com> writes:

> On Wednesday, May 6, 2015 at 12:07:13 PM UTC+5:30, Palpandi wrote:

> > What are the ways to encrypt python files?
>
> No, I just want to hide the scripts from others.

Which others? You can hide the scripts from them by never showing those
others the scripts. If you don't trust a recipient, don't let them
receive the file.

I suspect you are asking “how can I distribute Python modules to people
without those people being able to read them”? You can't, because
executing the file requires reading its contents.

Anyone who has a machine that can execute the file has a machine that
must, by necessity, read its contents.


This is the dilemma of those who think they want Digital Restrictions
Management (DRM): attempting to treat recipients as untrustworthy, while
still telling them they can use the files.

If you a person is in possession of the file you're trying to restrict,
on a machine they possess, with a key needed to unlock the content, then
that person is in possession of everything needed to unlock the content.

On the other hand, if one of those (e.g. the key to unlock the content)
is missing, then the file is useless for whatever you're saying the
recipient can do with it.

The only feasible solution is to distribute files only to those
recipients you want to have them, and can trust to do with them as you
ask. If you don't trust a recipient, don't hand the files to them.


On the other hand, if you're asking something else, you will need to be
much more explicit. You have not helped us understand what you want thus
far.

-- 
 \        “This sentence contradicts itself — no actually it doesn't.” |
  `\                                               —Douglas Hofstadter |
_o__)                                                                  |
Ben Finney

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


Thread

Encrypt python files Palpandi <palpandi111@gmail.com> - 2015-05-05 23:37 -0700
  Re: Encrypt python files Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-06 16:47 +1000
  Re: Encrypt python files David Palao <dpalao.python@gmail.com> - 2015-05-06 08:49 +0200
  Re: Encrypt python files Palpandi <palpandi111@gmail.com> - 2015-05-06 00:23 -0700
    DRM is self-defeating (was: Encrypt python files) Ben Finney <ben+python@benfinney.id.au> - 2015-05-06 17:41 +1000
    Re: DRM is self-defeating (was: Encrypt python files) Chris Angelico <rosuav@gmail.com> - 2015-05-06 18:00 +1000
    Re: Encrypt python files Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-05-06 19:04 +1000
    Re: Encrypt python files Emile van Sebille <emile@fenx.com> - 2015-05-06 14:28 -0700
    Re: Encrypt python files Denis McMahon <denismfmcmahon@gmail.com> - 2015-05-08 10:59 +0000
      Re: Encrypt python files Dave Angel <davea@davea.name> - 2015-05-08 08:13 -0400
        (OT) Re: Encrypt python files Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-05-09 13:03 +1200
          Re: (OT) Re: Encrypt python files Chris Angelico <rosuav@gmail.com> - 2015-05-09 12:02 +1000
      Re: Encrypt python files BartC <bc@freeuk.com> - 2015-05-13 14:48 +0100
  Re: Encrypt python files Denis McMahon <denismfmcmahon@gmail.com> - 2015-05-08 10:51 +0000
  Re: Encrypt python files "M.-A. Lemburg" <mal@egenix.com> - 2015-05-13 15:11 +0200

csiph-web