Temp file that exists only in RAM?

前端 未结 5 412
梦毁少年i
梦毁少年i 2021-01-19 03:24

I\'m trying to write an encrpytion using the OTP method. In keeping with the security theories I need the plain text documents to be stored only in memory and never ever wri

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-19 03:56

    Not really unless you count in-memory streams (like stringstream).

    No especially and specifically for security purposes: any piece of data can be swapped to disk on virtual memory systems.

    Generally, if you are concerned about security, you have to use platform-specific methods for controlling access: What good is keeping your data in RAM if everyone can read it?

提交回复
热议问题