From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Subject: Re: Crypting files with Ada
Date: 13 Sep 2002 20:42:43 GMT
Date: 2002-09-13T20:42:43+00:00 [thread overview]
Message-ID: <slrnao4je3.ui5.adi@drcomp.erfurt.thur.de> (raw)
In-Reply-To: slrnao38p3.lm.randhol+news@kiuk0156.chembio.ntnu.no
Preben Randhol <randhol+news@pvv.org> wrote:
>> So take your glibAda and call unlink(filename); Or even better
> ^^^^^^^
> what is this?
This is inexistend. Unfortunately. It is ment like 'glibc', but only
for Ada.
The library should implement remove() on top of the Kernel-API in Ada.
Another approach (which I don't like) would be a more or less direct
binding to glibc, so to say "Pragma Import" all the time.
> The problem is that if you simply delete a file in say Windows or Linux
> you don't rease it you only delete the link.
Right.
> So unless the OS has overwritten the place the file occupied with new
> files one can recover it.
Yes. This is why someone intended wipe:
Description
The wipe command reads each file in sequence and writes
over the file with nul characters. If the -i option is
given, it prompts the user before wiping the file. If -d
is given, it removes each file after writing over it.
(The default behavior is just to write over it.) If -v is
given, wipe will print the version number.
You may have a look at the source or re-implement it on your own. It
doesn't sound too difficult.
> I guess one could change every byte in the file with 0 and then write
> the file again before deleting it.
Better read from /dev/random :) And do multiple passes in order to
destroy remaining magnetization.
--
mail: adi@thur.de http://adi.thur.de PGP: v2-key via keyserver
Das Gras steht hoch, man kann kaum mehr blicken,
das ist die richtige Zeit zum --- Rasenmaehen.
next prev parent reply other threads:[~2002-09-13 20:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-12 16:09 Crypting files with Ada Preben Randhol
2002-09-12 16:47 ` Preben Randhol
2002-09-12 22:03 ` Adrian Knoth
2002-09-13 8:34 ` Preben Randhol
2002-09-13 20:42 ` Adrian Knoth [this message]
2002-09-17 14:49 ` Jacob Sparre Andersen
2002-09-17 14:55 ` Preben Randhol
2002-09-17 17:44 ` Jacob Sparre Andersen
2002-09-17 18:26 ` Ted Dennison
2002-09-17 19:13 ` Jacob Sparre Andersen
-- strict thread matches above, loose matches on Subject: below --
2002-09-18 7:29 Grein, Christoph
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox