Shredding files in .NET.

Is there an SDK that can be used in managed code to store files securely?

EDIT: This is the only link I can find on google that helps me

EDIT: either an SDK or some component based on COM.

+5
source share
3 answers

This code from codeproject can be a good starting point.

Eraser has been around for many years, you can access it using System.Diagnostics.Process, or at least look through there is an algorithm.

+4
source

The technology has changed over the past few years, so when I happened to see this answer (why the answer wasn’t accepted again?), I would like to provide an update for others with similar questions.

Note that shredding is very dependent on the file system and media. Trying to “split” a file in a log-based file system or a file system stored on a smart flash drive (write alignment) will not take you very far. You should, at a minimum, write enough data to fill the device in order to hope that the old data can be overwritten once.

Most likely, you will have to write several smaller files, and when you get FS, delete it, and then continue to write a new one so that all the reserved space is overwritten. Then you are likely to be safe enough. Maybe.

I say this probably because the / FS storage medium may decide that the block is not working (or is using too much relative) and displays it, instead replacing some other part of the disk. Of course, this is a one-block block, so it is unlikely that any much larger file will be reconstructed.

+1
source

See Windows.WinAny.Helper in CodePlex. It has a SecureDelete extension that allows you to shredd files with various algorithms such as Gutmann, DoD-7, DoD-3, Random or Quick.

+1
source

All Articles