文件粉碎概念问题 [英] File Shredding Concept question
问题描述
我的计算机上有一个文件粉碎机,我想知道是否可能仅出于学习目的而用JAVA制作文件粉碎机.但是,我不确定它的工作原理,所以我认为这是正确的,请在错误之处纠正我.
I have a file shredder on my computer, and I wanted to know if it's possible to make one in JAVA just for learning sake. But, I'm not sure how exactly it works, so this is what I think it does, please correct me where I'm wrong.
因此,基本上,它会继续加密文件的字节,然后将其删除.但这对我来说似乎太容易了,因此我必须丢失某些东西或完全错了.我已经看过它是如何工作的,但是我总是会得到软件广告.
So basically it keeps encrypting the bytes of the file, and then simply deletes it. But that seems too easy to me, so I must be missing something or be completely wrong. I've looked up how it works, but I always just get software advertisements.
感谢您的回复
推荐答案
覆盖将解决问题,但它取决于文件系统/平台(请参见下面的注释).这是.NET的一个相关问题(与Java没有太大不同)在.NET中粉碎文件
Overwriting will solve the problem but it depends on the filesystem/platform (see the comment below). Here's a related question with .NET (not so much different than Java) Shredding files in .NET
这篇关于文件粉碎概念问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!