Irretrievably destroying data in Java

后端 未结 10 1452
时光说笑
时光说笑 2020-12-10 04:26

Is there anyway in Java to delete data (e.g., a variable value, object) and be sure it can\'t be recovered from memory? Does assigning null to a variable in Jav

10条回答
  •  佛祖请我去吃肉
    2020-12-10 05:06

    I would think that your best bet (that isn't complex) is to use a char[] and then change each position in the array. The other comments about it being possible for it to be copied in memory still apply.

提交回复
热议问题