Solved

Secure File Delete

Posted on 2014-02-04
5
248 Views
Last Modified: 2014-02-04
I know how to do a simple file deletion in vb.net but is there a way to do a permanent delete so that the file could not be recovered using 3rd party recovery tools?
0
Comment
Question by:dthillsr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 96

Assisted Solution

by:Experienced Member
Experienced Member earned 334 total points
ID: 39833730
I think almost any file can be recovered if the computer is working properly.

I suggest you change the contents internally in VB to all zeros (the whole file) and then save it. Then delete it.

The contents of the old file might linger on for a bit but (a) not as a file and (b) they will disappear in time.

... Thinkpads_User
0
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 166 total points
ID: 39833778
I agree that from disk, bits and bites can be recovered, the normal "file delete" will only delete the file pointer in the file system.
so, overwriting the file is the only way to go, the more often you change the contents, the better the security will be.
the important point is: the data you save must be the same size, otherwise the file data might be relocated on disk, so you actually may not overwrite the exact disk parts of where your file was.
so, you may replace the contents first with "only 0 bits", then with "only 1" bits, then with "01" sequences, finally with only "10" sequences.
0
 

Author Comment

by:dthillsr
ID: 39833868
I like the idea of changing the bits as suggested by the two of you but I don't know how to do this. Do you have something that could get me started?
0
 
LVL 96

Accepted Solution

by:
Experienced Member earned 334 total points
ID: 39833889
You should be able to write the data into existing records in your file. Open a record and write it back out with 0 (or 1) for the length of the record. Then do this for all records.

... Thinkpads_User
0
 
LVL 96

Expert Comment

by:Experienced Member
ID: 39833935
@dthillsr - Thanks and I was happy to help.

... Thinkpads_User
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question