Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sensitive data that is stored in memory can get written to disk (see next point for details wrt keeping sensitive data on disk) when a page is swapped out of the physical memory. You may be able to "lock" your data to keep it from swapping out. Your program will generally need administrative privileges to do this successfully, but it never hurts to try. Please refer MEM06-C. Ensure that sensitive data is not written out to disk for details.

Do not store the sensitive data in plaintext (neither on disk, nor in

...

memory)

Wiki Markup
See [MEM06-C. Ensure that sensitive data is not written out to disk].
While using passwords, consider storing its hash instead of plaintext. Use the hash for comparisons and other purposes. The following code \[[#1]\] illustrates this:

...