Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65350
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'needed,': 0.07; 'key.': 0.09; 'overwrite': 0.09; 'references.': 0.09; 'subtle': 0.09; 'python': 0.11; 'random': 0.14; 'posted': 0.15; 'caching': 0.16; 'overwriting': 0.16; 'reasonably': 0.16; 'roy': 0.16; 'said.': 0.16; 'scrub': 0.16; 'unlikely': 0.16; 'wrote:': 0.18; 'later': 0.20; 'feb': 0.22; 'byte': 0.24; 'earlier': 0.24; 'mon,': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'array': 0.29; 'message-id:@mail.gmail.com': 0.30; 'them?': 0.31; 'run': 0.32; 'bugs': 0.33; 'subject:the': 0.34; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'sequence': 0.36; 'to:addr:python-list': 0.38; 'though,': 0.39; 'use.': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'new': 0.61; 'soon': 0.63; 'smith': 0.68; 'truth': 0.81; 'domain,': 0.84; 'clearing': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=AwF59mCt6gBYNMzQzZj6xxp7/ZhJj5KySTPI+wx7nyk=; b=A8HVmIX6t7tpiOVCfbzgJsiWX3TcxQAhxJzqTQYE4fSQ/RFULpA/6ah0245ejjhFis QUTKct8oYOsgEwntKn8EPiQleziJV/wIxUZX2Pon7UuZVnnLUq0TQv7jedhM7yNFsTSA FjvcIqFmS6NLiu1SvyNw43j1MdD3Htrt25oO2t4QWKnbHxOC/Lujveu6JrR/QKhGUrDQ uSl5RH9v6BymLXxtZYKD4xh29XYyL0mWwLcISxvWHzmpaoLAq7fFa7+eL17MqnJv7Fz5 VcQojyeF0KVoFFqAXhffbjf1WwUHTp6OrrmUn7na1Fad+D8lnIn87ymKcgUV2BBNy/90 zASw== |
| X-Received | by 10.66.221.103 with SMTP id qd7mr38162947pac.44.1391449502565; Mon, 03 Feb 2014 09:45:02 -0800 (PST) |
| MIME-Version | 1.0 |
| In-Reply-To | <d37ve99ne6g7m3ijpi4f3mudea3r8t7cu4@4ax.com> |
| References | <lcgtpf$tui$1@ger.gmane.org> <lcgut2$b8r$1@ger.gmane.org> <858utviwgs.fsf@benfinney.id.au> <lchce7$44q$1@ger.gmane.org> <52EC3C40.7080402@stoneleaf.us> <mailman.6251.1391224639.18130.python-list@python.org> <52ec84bc$0$29972$c3e8da3$5496439d@news.astraweb.com> <roy-5740C1.00250401022014@news.panix.com> <bl81skFh14iU1@mid.individual.net> <mailman.6313.1391383680.18130.python-list@python.org> <roy-C454F0.18405902022014@news.panix.com> <d37ve99ne6g7m3ijpi4f3mudea3r8t7cu4@4ax.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Mon, 3 Feb 2014 10:44:21 -0700 |
| Subject | Re: __init__ is the initialiser |
| To | Python <python-list@python.org> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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.6347.1391449511.18130.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1391449511 news.xs4all.nl 2878 [2001:888:2000:d::a6]:60022 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:65350 |
Show key headers only | View raw
On Mon, Feb 3, 2014 at 6:44 AM, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote: > On Sun, 02 Feb 2014 18:40:59 -0500, Roy Smith <roy@panix.com> declaimed the > following: > >>I'm reasonably sure you posted this as humor, but there is some truth in >>what you said. In the crypto/security domain, you often want to keep a >>key or cleartext around only for the time it's needed, and scrub the >>memory it was occupying as soon as it is no longer in use. >> >>I don't know how you would do that in Python. > > Don't store it as text... Use a numeric array of byte values, which can > then be run through a clearing procedure (overwrite with random values, > overwrite with ones complement of same random values, overwrite with new > random values). > > Python may be caching the individual byte values, but the are unlikely > to be in any sequence indicative of a key. If Python interns the byte objects though, won't overwriting them lead to subtle bugs later on as Python attempts to reuse them? They may even be reused already from earlier byte objects with the same values, that may or may not still have references.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: __init__ is the initialiser Terry Reedy <tjreedy@udel.edu> - 2014-01-31 22:16 -0500
Re: __init__ is the initialiser Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-02-01 05:23 +0000
Re: __init__ is the initialiser Roy Smith <roy@panix.com> - 2014-02-01 00:25 -0500
Re: __init__ is the initialiser Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-03 12:15 +1300
Re: __init__ is the initialiser Chris Angelico <rosuav@gmail.com> - 2014-02-03 10:27 +1100
Re: __init__ is the initialiser Roy Smith <roy@panix.com> - 2014-02-02 18:40 -0500
Re: __init__ is the initialiser Chris Angelico <rosuav@gmail.com> - 2014-02-03 11:07 +1100
Re: __init__ is the initialiser Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-02-02 17:24 -0800
Re: __init__ is the initialiser Chris Angelico <rosuav@gmail.com> - 2014-02-03 12:37 +1100
Re: __init__ is the initialiser Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-02-02 17:54 -0800
Re: __init__ is the initialiser Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-02-03 08:44 -0500
Re: __init__ is the initialiser Nicholas Cole <nicholas.cole@gmail.com> - 2014-02-03 13:50 +0000
Re: __init__ is the initialiser Ian Kelly <ian.g.kelly@gmail.com> - 2014-02-03 10:44 -0700
Re: __init__ is the initialiser Chris Angelico <rosuav@gmail.com> - 2014-02-04 04:57 +1100
Re: __init__ is the initialiser Nicholas Cole <nicholas.cole@gmail.com> - 2014-02-03 19:57 +0000
Re: __init__ is the initialiser Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-02-03 19:38 -0500
Re: __init__ is the initialiser Dave Angel <davea@davea.name> - 2014-02-02 19:35 -0500
Re: __init__ is the initialiser Roy Smith <roy@panix.com> - 2014-02-02 19:45 -0500
Re: __init__ is the initialiser Dave Angel <davea@davea.name> - 2014-02-02 22:14 -0500
Re: __init__ is the initialiser Skip Montanaro <skip@pobox.com> - 2014-02-02 21:15 -0600
Re: __init__ is the initialiser Dave Angel <davea@davea.name> - 2014-02-03 00:06 -0500
Re: __init__ is the initialiser Roy Smith <roy@panix.com> - 2014-02-03 00:12 -0500
Re: __init__ is the initialiser Chris Angelico <rosuav@gmail.com> - 2014-02-03 16:49 +1100
Re: __init__ is the initialiser Ethan Furman <ethan@stoneleaf.us> - 2014-02-02 21:34 -0800
Re: __init__ is the initialiser Rustom Mody <rustompmody@gmail.com> - 2014-01-31 21:31 -0800
csiph-web