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.
Thanks for any response
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