Temp file that exists only in RAM?

前端 未结 5 453
梦毁少年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:33

    OTP is an awful encryption method for arbitrary files, unless you have a massive amount of entropy that you can guarantee never repeats itself (that's why it's called "one-time"!)

    If you want to create a file-like object that only exists in memory and you don't care about Windows, I'd look at writing a custom FUSE filesystem (http://fuse.sourceforge.net/); this way you guarantee what will and will not get written to disk, and your files are accessible by all programs.

提交回复
热议问题