Open daveschaefer opened 10 years ago
I have some draft code that would work for this in cpython implementations. It may not work in other implementations.
It seems to be useless, and let me explain why. There are some sensitive dada - indeed, there are some other processes on servers - true, but if your potential opponent can take over even the garbage collection of the language or os - it means that he has root privileges. And it means there's no way to stop him from obtaining an information he needs.
While sensitive data stored in memory can never be truly safe on an untrusted system, especially in python with immutable strings, garbage collection algorithms, et cetera, we could take steps to enhance our current treatment of sensitive information.
Notary server code could track any strings that contain sensitive information, and overwrite them with e.g. zeros once they are no longer needed or if the notary shuts down. This would be better than doing nothing.