[Twisted-Python] Erasing strings from memory?

Paul Swartz z3p at twistedmatrix.com
Sun Nov 10 23:29:32 EST 2002

On 10 Nov 2002 at 22:16, Glyph Lefkowitz wrote:

> Couldn't you use the 'array' module to create a character array which then you
> could manually dump garbage over?  (making sure not to use any array
> convenience functions like "tostring" or what-have-you)

Maybe, but I doubt I could send arrays to 
functions that expect Python strings.  I got a 
message from Rich Satz on pycrypto with a C module 
that will clear a Python string along with 
permission to use it in Twisted.  I'll commit it 
when I use it in conch.

     Paul Swartz
(o_  http://twistedmatrix.com/users/z3p.twistd/
//\  z3p at twistedmatrix.com
V_/_ AIM: Z3Penguin

More information about the Twisted-Python mailing list