|
-
September 4th, 2003, 06:42 AM
#16
Question,
I was not aware Windows will use new sectors.
It's very unlikely.
When you use CreateFile and read and write parts of the file, no new sectors should be used.
Therefore the rewrite should be very safe.
Norton wipeinfo does a similar job.
It also supports multiple writes since the manufacturer can (sometimes) read up to 8 writes(!)
That's what i heard anyway, it's a magnetic thing.
Last edited by Edwin Knoppert; September 4th, 2003 at 09:48 AM.
-
September 4th, 2003, 09:40 AM
#17
If your data are so critical and secret, I would recommend to use some kind of disk encryption before anything else so that someone who get access to your files won't be able to read the real stuff without you keyphrase.
-----
Heulsay
-
September 4th, 2003, 10:28 AM
#18
Re: Moreover...
Originally posted by Cimperiali
When someone comes and take your Hd to lok for data, usually he/she does not put your hd in a new hardware as the primary disk, but attach it as slave...Thus your program will not run at all, as the Os is on another disk where your program does not trig...
It would be easyer to attach a small bomb inside Pc, so that if soenoe try to open, your bomb explodes...
eh, never thought about that... wonder how cops do it when they comfiscate a HD... (or actually i think they usually clone them. that's what i saw on some tv show anyways.)
-
September 4th, 2003, 05:09 PM
#19
can anyone suggest encryption software?
-
September 4th, 2003, 11:29 PM
#20
actually, encryption wouldn't help. cause i need to be able to use these files without decrypting them all the time.
but anyways, as for overwriting the files, when you say writing 0s to the end of the file, do you mean like, opening the file, getting the length, then writing that many 0s to it and closing it?
like this:
On Error Resume Next
Dim iFileNumber As Integer
Dim i As Integer
iFileNumber = FreeFile
Open "C:\test.txt" For Output As #iFileNumber
Print #iFileNumber, String$(FileLen("C:\test.txt"), Chr$(0));
Close #iFileNumber
or is that totally wrong?
-
September 5th, 2003, 12:10 AM
#21
Sorry for the interruption but...
Simply, open the file for output will re-create the file and then finally delete the file. I think this will surely hard to recover the data or nothing can be revied at all..
Code:
hFile = FreeFile()
Open "c:\myConfi.txt" For Output As #hFile
Close #hFile
Kill "c:\myConfi.txt"
But as the majority said that overwriting the file would be much safer..
Code:
hFile = FreeFile()
Open "c:\myConfi.txt" For Binary As #hFile
Put #hFile,, String$(LOF(hFile), vbNullChar)
Close #hFile
Kill "c:\myConfi.txt"
Goodluck!
Busy 
-
September 5th, 2003, 04:31 AM
#22
Overwriting methods
As many of us said, its safer to overwrite first the file before deleting it.
Tinbum747 said that the OS may select another physical location for the empty data (zeroes), and then replace the pointers in FAT. This is understandable specially if we replacing a file with data of a different size than the original and OS determines that the original location not matches at all the data length. So the real file even without header can still stay there.
Another member said that Windows is not that "smart" or better is a bit lazy to do such a thing. So it may still use the same physical disk area to overwrite the contents.
Thread1 uses a single PUT sending a large amount of data in one single method call to the file. This is possible to confirm what Tinbum747 says, I dont recall what PUT really does and behaves (disk area reservation, FAT handling, etc).
In pure logic, if you open a file for binary, select a specific byte and replace it with one PUT method and close it, will NOT use another physical disk area. So by using many PUTs (sending 1-byte or to not be that slow small packets) maybe its safer to confuse the OS to not use other location. Just an idea for bringing closely the "wiping" thing.
- Better live in the digital world -
-
September 5th, 2003, 07:22 AM
#23
Well for encryption, if I remember correctly, you can have some sort of os level encryption system for your files, so any software / access to files is done as usual. I also think that you can do that with some windows professional (2000 and XP and maybe nt) over a ntfs filesystem.
-
September 5th, 2003, 11:19 AM
#24
ok, thanks a lot guys. i'll use that code Thread1. i guess put the directory's contents in an array and loop through each file.
-
September 6th, 2003, 04:39 PM
#25
I have found this at SysInternals. It's C-code, but maybe this could help you.
SDelete: Securely overwrite your sensitive files ...
-
September 12th, 2003, 07:15 PM
#26
Wipe a file (assembly)
- Better live in the digital world -
-
September 13th, 2003, 02:23 AM
#27
This is certainly an interesting topic. I think opening a file for Binary Access Write and writting in zero's, then deleting like Thread1 suggested is a good way, especially for hidding data from the typical user. However, close inspection might still reveal filenames, or parts thereof, so I would suggest renaming the file to some random string before deleting it. That should further hide the data, if any is actually left at all, IMHO.
Again, as has been pointed out, connecting the drive as a slave, or booting to a command prompt would prevent your program from running, so the files would be accessable. If I really wanted to keep data from others, I would put it on floppy, SuperDisc, memory stick, CDRW, or other removable media.
Just how many people have access to your system anyway? If it's your own system, just don't let others use it. If it's not your system, you shouldn't be keeping super-sensitive data on it anyway.
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
-
May 1st, 2006, 11:23 PM
#28
Re: Nice, dtv!
only the way destroy whole data from the HDD. get a hammer. and hit with it.
-
May 2nd, 2006, 10:01 AM
#29
Re: Nice, dtv!
 Originally Posted by jdavide
only the way destroy whole data from the HDD. get a hammer. and hit with it.
Even that is not guaranteed to destroy all data on all parts of the hard drive... 
Brad!
-----------------------------------------------
Brad! Jones,
Yowza Publishing
LotsOfSoftware, LLC
-----------------------------------------------
-
May 2nd, 2006, 12:40 PM
#30
Re: Nice, dtv!
reviving a three year old thread just for that jdavide?...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|