Secure file erase

Everything else that doesn't fall into one of the other PB categories.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

talisman wrote:Irrelevant to the discussion, but WHY did you do that SFSxOI?! WHY?!
Why what?
Thorium
Addict
Addict
Posts: 1314
Joined: Sat Aug 15, 2009 6:59 pm

Post by Thorium »

SFSxOI wrote:
talisman wrote:Irrelevant to the discussion, but WHY did you do that SFSxOI?! WHY?!
Why what?
You wrote WoW and not wow. I think he want to know if you are a World of Warcraft addicted. ^^
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

Oh...some times there is a disturbance in the space-time continum and the event horizon of the black hole between my brain and the keyboard. :)

No, i'm not world of warcraft addicted, never played it which is probably why I missed the implied reference to it in his question.

Actually its correct slang in the area of the country i'm from to show initial suprise and exclaim it in writing for the emphasis on the suprise.

But I like the space-time continum/event horizon/black hole/keyboard theory better myself, which i have coined as the STCEHBHK acronym which is pronounced in Klingon as, well, STCEHBHK :)
Last edited by SFSxOI on Thu Aug 27, 2009 7:07 pm, edited 1 time in total.
Thorium
Addict
Addict
Posts: 1314
Joined: Sat Aug 15, 2009 6:59 pm

Post by Thorium »

SFSxOI wrote:Oh...some times there is a disturbance in the space-time continum and the event horizon of the black hole between my brain and the keyboard. :)
Sounds pretty much plausible. Case solved. ^^
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

@SFSxOI I'm rather impressed at your knowledge in this, and I agree fully with what you said.

Here's a little example for those not understanding what can be recovered:
T%ismay bea!bit hard8to read,
and a com uter pr g am may have a lot of issues making s0nse of this.
But a human monitor or fo&ensic reviewer wo)ld notice a patteån,
and flag this as rel"vant so a pas&word or other sensitpve info could be partiølly recovered and the bl nks filled in.
As SFSxOI said, that's all they might need to be able to prove your guilty of whatever the charges may be.
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

Re: Secure file erase

Post by doctorized »

I brought this post back to life to ask if there is, after all this discussion, a reliable way to safely delete a file. I have this code:

Code: Select all

Procedure DeleteFileSecurely(filename$)
OpenCryptRandom()
For i = 1 To 8
	If OpenFile(0, filename$) 
		If Lof(0) > 0
			*temp = AllocateMemory(Lof(0))
			CryptRandomData(*temp, Lof(0))
			FileSeek(0,0)
			WriteData(0,*temp,Lof(0))
			FlushFileBuffers(0)
			FreeMemory(*temp)
		EndIf
		CloseFile(0)
	EndIf
Next
CloseCryptRandom()
DeleteFile(filename$)
EndProcedure
but it is not deleting securely the file every time. It only deletes the file securely when it runs one time without DeleteFile(filename$) closes the app and then runs again with DeleteFile(filename$).
Post Reply