How do I do "wipe" in WinNT
Marc Mutz
Marc@Mutz.com
Thu, 02 Nov 2000 18:21:46 +0000
Wesley J Landaker wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Monday 30 October 2000 8:05pm, Kevin Hung wrote:
> > I am using GNUPG in WinNT at work (I know that this is
> > not the favorite OS for GNU people but I don't have a
> > choice) and I would like to have the "wipe" feature as
> > availabe in PGP or the shred command in Linux. Is
> > there any similar thing like shred in NT? Thanks.
>
> If there's not already something that does that in Windows from the
> command line (I know some gui utilities that do it, and of course PGP
> does--but this assuming you're not using PGP), this should do the trick
> (this does exactly what most utilities like shred do--overwrite with
> '1's, '0's, and random bytes. Of course, you need a better random
> source than "rand()" usually, but this should probably be okay
> anyway--heck, we're using 50 iterations!!!)
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <time.h>
>
> void do_shredding(const char file[]);
>
> int main(int argc, char *argv[]) {
>
> if (argc < 2) {
> printf("Cheapskate-shred -- this will shred files as good as
> anything else...\n");
> printf("Usage: %s <file> ...\n",argv[0]);
> return 1;
> }
>
> for (int i=1;i<argc;i++) {
> do_shredding(argv[i]);
> }
>
> return 0;
>
> }
>
<snip>
This is BS. At the _very_ least, you should sync the written blocks to
disc after each iteration. Then there are all the other problems people
mentioned.
Marc
--
Marc Mutz <Marc@Mutz.com> http://EncryptionHOWTO.sourceforge.net/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics
PGP-keyID's: 0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)
--
Archive is at http://lists.gnupg.org - Unsubscribe by sending mail
with a subject of "unsubscribe" to gnupg-users-request@gnupg.org