Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed7.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'subject:Python': 0.05; '(using': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'substitution': 0.09; 'cc:addr:python- list': 0.10; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'am,': 0.23; 'tried': 0.24; 'seems': 0.24; 'header:In-Reply-To:1': 0.24; 'skip:b 30': 0.24; 'header :User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'random': 0.29; 'received:comcast.net': 0.33; 'to:addr:python-list': 0.35; 'asking': 0.35; 'but': 0.36; 'thanks': 0.36; 'subject:: ': 0.37; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'data': 0.40; 'charset:windows-1252': 0.65; 'subject:Data': 0.66; 'fast,': 0.84; 'sfxlen:4': 0.84; 'pfxlen:big': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Randall Smith Subject: Re: Pure Python Data Mangling or Encrypting Date: Wed, 24 Jun 2015 13:24:46 -0500 References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: "comp.lang.python" 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 In-Reply-To: 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1435170306 news.xs4all.nl 2853 [2001:888:2000:d::a6]:33018 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:93094 On 06/24/2015 02:44 AM, Devin Jeanpierre wrote: > How about a random substitution cipher? This will be ultra-weak, but > fast (using bytes.translate/bytes.maketrans) and seems to be the kind > of thing you're asking for. > > -- Devin I tried this out and it seems to be just what I need. Thanks Devin! It's pure Python, fast, and mangles the data sufficiently. --Randall