Why what?talisman wrote:Irrelevant to the discussion, but WHY did you do that SFSxOI?! WHY?!
Secure file erase
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
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.
@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:
Here's a little example for those not understanding what can be recovered:
As SFSxOI said, that's all they might need to be able to prove your guilty of whatever the charges may be.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.
- doctorized
- Addict

- Posts: 882
- Joined: Fri Mar 27, 2009 9:41 am
- Location: Athens, Greece
Re: Secure file erase
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:
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$).
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