[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CRC-32 program



On Mon, 1 Dec 1997, Timothy Phan wrote:

> Hi,
> 
>   I'd like to know where can I get a CRC-32 program? 
> 
>   Thanks!
> 

"cksum" from the textutils package computes a CRC (32 bit) check of files;
the documentation is a bit sketchy (even the info file) - this has the
same functionality as the FreeBSD utility of the same name (i.e. it
produces the same results given the same input). 

(A useless bit of trivia: the polynomial used in the calculation is
 x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + 
 x^5 + x^4 + x^2 + x + 1)

If you're looking for a way to generate checksums on files to make certain
that they aren't being mangled in transit (or as tampering protection),
though, it might be better to use the md5 algorithm instead of a CRC-32
sum.  "md5sum" from the base system will compute that.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: