Sensitive Data In Memory

前端 未结 4 418
猫巷女王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:55

    Yes it certainly is, especially since you quite trivially can debug an application. Most code dealing with encryption and unsafe data use char arrays instead of strings. By using char arrays, you can overwrite the memory with sensitive details, limiting the lifetime of the sensitive data.

提交回复
热议问题