Aces Kok Ben wrote:I read on the internet that the RandomFileAccess API could help one to code functions that could securely delete files inside a file System. How does it work? What are some uses of the RandomFileAccess class? I only know it could read file and "edit" the file at random time?
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Anayonkar Shivalkar wrote:
Aces Kok Ben wrote:I read on the internet that the RandomFileAccess API could help one to code functions that could securely delete files inside a file System. How does it work? What are some uses of the RandomFileAccess class? I only know it could read file and "edit" the file at random time?
Do you mean to say java.io.RandomAccessFile?
Campbell Ritchie wrote:And where did it say you can delete files? Please quote the website.
Aces Kok Ben wrote:I only know it could read file and "edit" the file at random time?
Seetharaman Venkatasamy wrote:
Aces Kok Ben wrote:I only know it could read file and "edit" the file at random time?
random time or random places?
Aces Kok Ben wrote:I'm not sure. I'm confuse, how does RandomFileAccess create secure file delete?
Aces Kok Ben wrote:I'm not sure. I'm confuse, how does RandomFileAccess create secure file delete?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Paul Clapham wrote:
Aces Kok Ben wrote:I'm not sure. I'm confuse, how does RandomFileAccess create secure file delete?
I don't know why you ask that, because the link you posted contains a code example.
Anyway, that code example overwrites the contents of the file with some values (check the listing for details) before deleting the file. That's more secure than just deleting the file, because there are tools which can scan a disk and find disk sectors which belonged to files which have been deleted. These sectors could have data which was supposed to be secure.
Does that help? I couldn't tell whether you were asking how the file got deleted or whether you were asking what "secure file delete" means or what. If what I posted didn't happen to cover your actual question, don't hesitate to ask it again. In different words.
Aces Kok Ben wrote:I was asked to code some java security application, in which one of the functions requires me to come out with a class / method that will allows me to delete file securely, without leaving any trace inside the flashdrive. The function should delete the file securely, in which I mean even if someone else try to use 3rd party software(Forensic software) to scan the flashdrive, it will make it difficult, or nearly impossible for it to scan for the traces of the deleted file.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
straws are for suckers. tiny ads are for attractive people.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|