Langa --

...and then Langa F. Kentane said...
% 
% Greetings,
% How would I go about shredding a file with perl, for instance, I have a
...
% temp file afterwards so that prying eyes can't read it afterwards?

You've seen some suggestions on how to overwrite the file.  The truth is
that, if you're concerned with security, you should not only get rid of
the file but also handle all manner of race conditions and other attacks.

My question is "Why write to a file at all?".  Keep it all in your memory
instead (use a scalar, an array, a WHATEVER) and never explicitly write
it out to disk.


% 
% Any pointers would be greatly appreciated.

Depending on the level of security you need, you might check up on some
of the crypto lists like gnupg-users; crypto has a big reason to worry
about such things.


% 
% Regards
% 
% LK

HTH & HAND


:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg24858/pgp00000.pgp
Description: PGP signature

Reply via email to