Secure text editor?

Ryan Malayter malayter at
Thu May 17 16:41:33 CEST 2007

On 5/17/07, Alessandro Vesely <vesely at> wrote:
> Not quite. That may happen as an undocumented side effect on some
> (or all) OS versions, and is not what the function is meant to do.
> The function keeps the page in memory. The OS is still free to back
> it up whenever it thinks it is convenient to do so.

The documentation clearly states:
"These pages are guaranteed not to be written to the pagefile while
they are locked."

Assuming the documentation is accurate, VirtualLock() should be safe
for security applications.

More information about the Gnupg-users mailing list