LLCryptoLib.Shred library contains the functions to wipe a file from the disk, using a variety of standard algorothms, such Gutmann or DoD.

Classes

  ClassDescription
Public classShredBase
Base class for shred methods
Public classShredComplex
Rewrites the file area 3 times with 0xFF, 0x00, random bytes
Public classShredder
Shredder. The shredder class is tipically called in this way:
            Shredder s = new Shredder(new Random())
            FileInfo theFile = new FileInfo(@"C:\temp\log.txt");
            IShredMethod method = ShredMethods.Get(AvailableShred.COMPLEX);
            if (s.WipeFile(theFile, method, true))
            {
                log("File shredded.");
            }
            
Public classShredDOD
Rewrites the file area 7 times with 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xF6 bytes.
Public classShredGermanVSITR
German VSITR shred method. This shred method overwrites the file area with 0's, 1's and finally a random byte.
Public classShredGutmann
Rewrites the file area 35 times with 0x34, 0x12, 0x1B, 0x00, 0x55, 0xAA, 0x24, 0x92, 0x49, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF, 0x24, 0x92, 0x49, 0xDB, 0x6D, 0xB6, 0x12, 0xFF, 0x82, 0x9A
Public classShredHmgEnh
HMG Infosec Standard 5 Enhanced shred method. This shred method overwrites the file area with 0's, 1's and finally a random byte.
Public classShredMethods
ShredMethod is a struct describing the shredding methods and a factory of ShredMethod objects.
Public classShredNothing
No shred option. It deletes the file with OS delete.
Public classShredRandom
Rewrites the file area 5 times with random bytes
Public classShredSimple
Rewrites file area one time with 0x00 byte

Interfaces

  InterfaceDescription
Public interfaceIShredMethod
IShredMethod.

Enumerations

  EnumerationDescription
Public enumerationAvailableShred
Available Shredding Methods