[Twisted-Python] Erasing strings from memory?

Glyph Lefkowitz glyph at twistedmatrix.com
Sun Nov 10 23:16:46 EST 2002

On 10 Nov 2002 18:06:27 -0000, Moshe Zadka <twisted at moshez.org> wrote:
> The best way would probably to do it in a subprocess. The next
> best way would be to read the string into an mmapped are which
> you explicitely free. If you want to be really secure, write a third
> program like ssh-agent which does the authentication for a user.

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)

 |    <`'>    |  Glyph Lefkowitz: Traveling Sorcerer   |
 |   < _/ >   |  Lead Developer,  the Twisted project  |
 |  < ___/ >  |      http://www.twistedmatrix.com      |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20021110/34db3969/attachment.pgp 

More information about the Twisted-Python mailing list