当前位置: 动力学知识库 > 问答 > 编程问答 >

security - How to guarantee the wiping of confidential data before it is garbage collected in Java?

问题描述:

Imagine you have a symmetric key in heap memory, you no longer need it but you want to make sure it is wiped before the memory is released/garbage collected. If you wipe it yourself, the optimiser is likely to skip this step as unnecessary. So, how to do it properly?

网友答案:

I think this blog post should get you started. It seems to be about Swing, but I don't see why you couldn't apply it generally.

http://www.javalobby.org/java/forums/t19519.html

分享给朋友:
您可能感兴趣的文章:
随机阅读: