Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Data wipe algorithms

Data wipe algorithms

Scheduled Pinned Locked Moved C#
algorithmshelptutorialquestionlounge
16 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Johan Martensson

    That's what I was thinking, but that doesn't seem very realistic. Imaging if I wanted to erase a 4 GB DVD-ISO, that would mean I have to create a 4 GB byte-array before the first pass and compare each byte later.

    http://johanmartensson.se - Home of MPEG4Watcher

    E Offline
    E Offline
    Ed Poore
    wrote on last edited by
    #5

    Unless you things byte by byte as you go.


    My Blog[^]

    P 1 Reply Last reply
    0
    • E Ed Poore

      Unless you things byte by byte as you go.


      My Blog[^]

      P Online
      P Online
      PIEBALDconsult
      wrote on last edited by
      #6

      So if the random byte you want to write matches the existing byte, select a different random byte? Oh there's a good use for clock cycles.

      E 1 Reply Last reply
      0
      • P PIEBALDconsult

        So if the random byte you want to write matches the existing byte, select a different random byte? Oh there's a good use for clock cycles.

        E Offline
        E Offline
        Ed Poore
        wrote on last edited by
        #7

        Meh, they never said anything about that!


        My Blog[^]

        P 1 Reply Last reply
        0
        • E Ed Poore

          Meh, they never said anything about that!


          My Blog[^]

          P Online
          P Online
          PIEBALDconsult
          wrote on last edited by
          #8

          They must have forgotten to. What if your random bytes just happen to all match the bytes to be wiped? :-D

          P E 2 Replies Last reply
          0
          • P PIEBALDconsult

            They must have forgotten to. What if your random bytes just happen to all match the bytes to be wiped? :-D

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #9

            PIEBALDconsult wrote:

            What if your random bytes just happen to all match the bytes to be wiped?

            I believe the error message would read "Woahhhh. Bummer dude."

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            1 Reply Last reply
            0
            • P PIEBALDconsult

              They must have forgotten to. What if your random bytes just happen to all match the bytes to be wiped? :-D

              E Offline
              E Offline
              Ed Poore
              wrote on last edited by
              #10

              I was going to said BSOD it but Pete's answer is much better.


              My Blog[^]

              1 Reply Last reply
              0
              • P PIEBALDconsult

                Read back each byte [after you write it] to be sure it's the same as what you thought you wrote? Seems fairly pointless to me; what do you do if it's not?

                modified on Monday, January 07, 2008 4:05:57 PM

                L Offline
                L Offline
                Luc Pattyn
                wrote on last edited by
                #11

                PIEBALDconsult wrote:

                what do you do if it's not?

                As always, try a couple of times, and if it continues to fail, report the failure. :)

                Luc Pattyn [Forum Guidelines] [My Articles]


                Happy 2008!


                P 1 Reply Last reply
                0
                • L Luc Pattyn

                  PIEBALDconsult wrote:

                  what do you do if it's not?

                  As always, try a couple of times, and if it continues to fail, report the failure. :)

                  Luc Pattyn [Forum Guidelines] [My Articles]


                  Happy 2008!


                  P Online
                  P Online
                  PIEBALDconsult
                  wrote on last edited by
                  #12

                  Keep trying different bytes until one matches? :-D

                  1 Reply Last reply
                  0
                  • J Johan Martensson

                    I have been reading up a lot on the different standard file wipe algorithms that exists and I was hoping that someone could explain one thing to me. Most of the algorithms are straightforward and shouldn't post to much difficulty to implement but I don't understand the verification part of some of them. Take the standard DoD 5220.22-M for example which states:

                    - US Department of Defense DoD 5220.22-M (3 passes)
                    DoD 5220.22-M is three pass overwriting algorithm:
                    first pass - with zeroes, second pass - with ones and the last pass with random bytes.
                    With all passes verification.

                    or the US Army AR380-19:

                    - US Army AR380-19 (3 passes)
                    AR380-19 is data wiping scheme specified and published by the U.S. Army.
                    AR380-19 is three pass overwriting algorithm:
                    first pass - with random bytes, second and third passes with certain bytes and with its
                    compliment (with last pass verification).

                    The three passes is not a problem but what am I suppose to verify?

                    http://johanmartensson.se - Home of MPEG4Watcher

                    E Offline
                    E Offline
                    Ennis Ray Lynch Jr
                    wrote on last edited by
                    #13

                    Verify means to verify the data you wrote. Unfortunately, the way modern hard drives are designed the two algorithms are not effective at preventing physical scans of the drives as hard drives are recorded using an encoding scheme to maximize storage. Technically speaking an HDD can store less data as all 1's or all 0' than a random assortment. The easiest method is to use a degausser that is Dod approved. If you were in the states I would name drop, www.data-assassins.com, which is one of my pet projects. We just degauss them using approved degaussers.

                    Need a C# Consultant? I'm available.
                    Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                    P 1 Reply Last reply
                    0
                    • P PIEBALDconsult

                      Read back each byte [after you write it] to be sure it's the same as what you thought you wrote? Seems fairly pointless to me; what do you do if it's not?

                      modified on Monday, January 07, 2008 4:05:57 PM

                      J Offline
                      J Offline
                      Johan Martensson
                      wrote on last edited by
                      #14

                      Wow, this is why I like Codeproject, I go to sleep and when I wake up, theres all these suggestions to my question. However I think this is the most logical answer...

                      http://johanmartensson.se - Home of MPEG4Watcher

                      1 Reply Last reply
                      0
                      • E Ennis Ray Lynch Jr

                        Verify means to verify the data you wrote. Unfortunately, the way modern hard drives are designed the two algorithms are not effective at preventing physical scans of the drives as hard drives are recorded using an encoding scheme to maximize storage. Technically speaking an HDD can store less data as all 1's or all 0' than a random assortment. The easiest method is to use a degausser that is Dod approved. If you were in the states I would name drop, www.data-assassins.com, which is one of my pet projects. We just degauss them using approved degaussers.

                        Need a C# Consultant? I'm available.
                        Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                        P Online
                        P Online
                        PIEBALDconsult
                        wrote on last edited by
                        #15

                        And I suspect it would still only verify what's in the controller's cache, not what's actually on the platter.

                        E 1 Reply Last reply
                        0
                        • P PIEBALDconsult

                          And I suspect it would still only verify what's in the controller's cache, not what's actually on the platter.

                          E Offline
                          E Offline
                          Ennis Ray Lynch Jr
                          wrote on last edited by
                          #16

                          Well that would be OS dependent, however, if you sent command directly to the controller I bet you could flush the cache? I bet you can even disable the cache on the HDD with a command. But again, thats why I say just degauss.

                          Need a C# Consultant? I'm available.
                          Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups