Safely remove key from memory in Python

84 views Asked by At

Suppose that I have some cryptographic application in Python.

The application receives a cryptographic key, does the job and then it doesn't need the key anymore.

Is it possible to completely erase that key and make sure it no longer exists in the device's memory?

I know that del doesn't remove the object, just decrements its reference count. Even when the refcount drops to zero and the object is garbage collected, its contents may still linger somewhere.

Is there any solution (function, library, c extension) that allows to do that?

0

There are 0 answers