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


Groups > comp.lang.python > #93076 > unrolled thread

Re: Pure Python Data Mangling or Encrypting

Started byDennis Lee Bieber <wlfraed@ix.netcom.com>
First post2015-06-24 08:19 -0400
Last post2015-06-24 08:19 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Pure Python Data Mangling or Encrypting Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-06-24 08:19 -0400

#93076 — Re: Pure Python Data Mangling or Encrypting

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2015-06-24 08:19 -0400
SubjectRe: Pure Python Data Mangling or Encrypting
Message-ID<mailman.14.1435148356.3674.python-list@python.org>
On Tue, 23 Jun 2015 14:02:45 -0500, Randall Smith <randall@tnr.cc>
declaimed the following:

>Chunks of data (about 2MB) are to be stored on machines using a 
>peer-to-peer protocol.  The recipient of these chunks can't assume that 
>the payload is benign.  While the data senders are supposed to encrypt 
>data, that's not guaranteed, and I'd like to protect the recipient 
>against exposure to nefarious data by mangling or encrypting the data 
>before it is written to disk.
>
	Pardon, but that description has me confused. Perhaps I just don't
understand the full use-case.

	Who exactly is supposed to be protected from what? You state "data
senders are supposed to encrypt" which, if the recipient doesn't have the
decryption key, implies the recipient -- isn't the real recipient but just
a transport/storage place until the data is retrieved by the end-user.

	If "you" do the encryption on the storage machine, then you need to
also do the decryption when returning the data to the end-user -- which
means the key is available somewhere on the storage machine, and the local
user might obtain access to it and the stored data.

	Given the assumptions I'm making, my recommendation is likely to be
something on the nature of: use an OS designed with security at the core of
the file system; each sender has their own login UID, and the file system
is configured to grant r/w access only to the login -- no execute
permissions, no access by someone not logged in as that user, etc.

	Or maybe bypass file system and use a client/server database (no
SQLite3) for the storage media, with the database privileges configured so
only your receive/return application can see the data -- and even that
could have configured logins per user.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web