Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!novso.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!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; 'python.': 0.02; 'needed,': 0.07; 'key.': 0.09; 'overwrite': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'random': 0.14; 'posted': 0.15; 'caching': 0.16; 'message-id:@4ax.com': 0.16; 'reasonably': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'roy': 0.16; 'said.': 0.16; 'scrub': 0.16; 'unlikely': 0.16; 'feb': 0.22; 'byte': 0.24; 'url:home': 0.24; 'header:X-Complaints- To:1': 0.27; 'array': 0.29; 'run': 0.32; 'subject:the': 0.34; 'but': 0.35; 'there': 0.35; 'sequence': 0.36; 'charset:us-ascii': 0.36; 'received:76': 0.38; 'to:addr:python-list': 0.38; 'use.': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'new': 0.61; 'soon': 0.63; 'smith': 0.68; 'truth': 0.81; 'domain,': 0.84; 'clearing': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: __init__ is the initialiser Date: Mon, 03 Feb 2014 08:44:28 -0500 Organization: IISS Elusive Unicorn References: <858utviwgs.fsf@benfinney.id.au> <52EC3C40.7080402@stoneleaf.us> <52ec84bc$0$29972$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-22-96.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391435061 news.xs4all.nl 2883 [2001:888:2000:d::a6]:35803 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65332 On Sun, 02 Feb 2014 18:40:59 -0500, Roy Smith 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. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/