Article View: comp.lang.perl.misc
Article #280Re: Calculate a file's checksum with Perl?
From: Stefaan A Eeckels
Date: Fri, 21 Jan 2000 00:00
Date: Fri, 21 Jan 2000 00:00
18 lines
1376 bytes
1376 bytes
In article <38885E85.14C84ABB@alcatel.fr>,
Alfonso PALACIOS SUREDA <alfonso.palacios-sureda@alcatel.fr> writes:
>
> Anyway, if the number I get whith this method is guaranteed to be
> unique, I don't care if it's different from the one I get whith "sum".
You might want to consider using MD5 or HAVAL to compute a hash.
The UNIX "sum" algorithm (and close relatives) isn't really suitable
for the purpose you mention.
Take care,
--
Stefaan
--
--PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)--
Ninety-Ninety Rule of Project Schedules:
The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.
Technical Details
Message-ID:
<869vtj$5fa$1@justus.ecc.lu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<388720EF.D7364F8@alcatel.fr> <3887A587.7C9C7531@mail.cor.epa.gov> <38885E85.14C84ABB@alcatel.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 112333,e5f5de2a0ef43657 X-Google-Attributes: gid112333,public X-Google-Thread: fa0ae,e5f5de2a0ef43657 X-Google-Attributes: gidfa0ae,public From: Stefaan.Eeckels@ecc.lu (Stefaan A Eeckels) Subject: Re: Calculate a file's checksum with Perl? Date: 2000/01/21 Message-ID: <869vtj$5fa$1@justus.ecc.lu> X-Deja-AN: 575767599 References: <388720EF.D7364F8@alcatel.fr> <3887A587.7C9C7531@mail.cor.epa.gov> <38885E85.14C84ABB@alcatel.fr> Content-Type: text/plain; charset=us-ascii Organization: E.C.C. sa - Computer Consultants Mime-Version: 1.0 Newsgroups: comp.lang.perl.misc,fr.comp.lang.perl