[Python-ideas] Secure string disposal (maybe other inmutable seq types too?)

Terry Reedy tjreedy at udel.edu
Sat Jun 23 22:44:05 EDT 2018

On 6/23/2018 8:14 PM, Greg Ewing wrote:
> Paul Moore wrote:
>> a = SafeStr("my secret data")
>> ... work with a as if it were a string
>> del a
> But in order to create the SafeStr, you need to first have
> the data in the form of an ordinary non-safe string. How
> do you dispose of that safely?

getpass could return a SafeStr (or SafeBytes?).
SafeStr could be initialized from a sequence of ints.

Terry Jan Reedy

More information about the Python-ideas mailing list