Sensitive Data In Memory

前端 未结 4 410
猫巷女王i
猫巷女王i 2020-12-17 09:26

I\'m working on a Java password manager and I currently have all of the user\'s data, after being decrypted from a file, sitting around in memory at all times and stored pla

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-17 09:59

    In theory, you cannot protect anything in memory completely. Some group out there managed to deep freeze the memory chips and read their contents 4 hours after the computer was turned off. Even without going to such lengths, a debugger and a breakpoint at just the right time will do the trick.

    Practically though, just don't hold the plaintext in memory for longer than absolutely necessary. A determined enough attacker will get to it, but oh well.

提交回复
热议问题