more useful options | |
PerlMonks |
Re: Calculating the crc checksum of a file using perl?by BrowserUk (Patriarch) |
on Jul 09, 2011 at 17:37 UTC ( [id://913541]=note: print w/replies, xml ) | Need Help?? |
If you are intending to use CRC32 to validate files against pre-existing checksums -- say those produced by a crc32 command for example -- then be sure to verify that whatever perl implementation you use matches. There are several (6) different polynomials used in various CRC32 standards. If you are going to be using it to detect differences in files -- and you are producing all the checksums -- then I strongly advise using Adler32 rather than CRC32. The former has a much lower collision rate than the latter, and is faster to calculate. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|