[PYTHON-CRYPTO] Erasing strings from memory?

Rich Salz rsalz at DATAPOWER.COM
Mon Nov 11 12:47:15 CET 2002


> Be careful with this: Python strings are immutable and some
> are shared. The code you gave below can result in a
> completely broken Python interpreter.

Good point.  Check that refcount==1 before actual memset.
        /r$



More information about the python-crypto mailing list