Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'chunks': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'slow.': 0.09; 'stored': 0.10; 'python': 0.11; 'assume': 0.11; 'algorithm': 0.13; 'output': 0.15; '(about': 0.16; 'disk.': 0.16; 'encryption': 0.16; 'included"': 0.16; 'nefarious': 0.16; 'peer-to-peer': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'software.': 0.22; 'thanks.': 0.22; 'installation': 0.23; 'written': 0.24; 'header:User-Agent:1': 0.26; 'idea': 0.26; 'header:X-Complaints-To:1': 0.26; 'appreciated.': 0.27; 'data,': 0.27; 'protocol.': 0.29; 'guess': 0.29; "i'd": 0.31; 'supposed': 0.31; "can't": 0.32; 'received:comcast.net': 0.33; 'to:addr :python-list': 0.35; 'ahead': 0.35; 'machines': 0.35; 'really': 0.35; 'but': 0.36; 'too': 0.36; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'data': 0.40; 'where': 0.40; 'some': 0.40; 'even': 0.61; 'subject:Data': 0.66; 'protect': 0.74; 'payload': 0.84; 'senders': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Randall Smith Subject: Pure Python Data Mangling or Encrypting Date: Tue, 23 Jun 2015 14:02:45 -0500 Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: c-98-251-140-107.hsd1.ms.comcast.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-Mailman-Approved-At: Wed, 24 Jun 2015 09:28:09 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1435130890 news.xs4all.nl 2940 [2001:888:2000:d::a6]:60007 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3611 X-Received-Body-CRC: 1291569999 Xref: csiph.com comp.lang.python:93068 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. My original idea was for the recipient to encrypt using AES. But I want to keep this software pure Python "batteries included" and not require installation of other platform-dependent software. Pure Python AES and even DES are just way too slow. I don't know that I really need encryption here, but some type of fast mangling algorithm where a bad actor sending a payload can't guess the output ahead of time. Any ideas are appreciated. Thanks. -Randall