linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about checksums
@ 2003-08-21 12:48 Holger Kiehl
  2003-08-21 13:20 ` Luciano Miguel Ferreira Rocha
  0 siblings, 1 reply; 9+ messages in thread
From: Holger Kiehl @ 2003-08-21 12:48 UTC (permalink / raw)
  To: linux-c-programming

Hello

Lets me first start to explain what I try to do. I have a big ascii
configuration file (appr. 500KB), which I split up in many smaller
jobs each approx. 180 Bytes (average, minimum is 50 maximum 5120 Bytes).
For each job I would like to generate a unique number, so that I can
refer to these jobs by their individual numbers.

What is the best way to generate a checksum from each job? Also I would
like that the checksums are always the same, when you calculate it
on a different host with different CPU and OS but using the same
job data.

I think md5sum could do the job but, think it is a bit of an overkill
to generate a 128 Bit checksum for such small input data. Also storing
such huge numbers is a bit of a pain. Would a 32 or 64 Bit checksum
sufficient, or would I be running into problems when these are to
short?

Regards,
Holger


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-08-24  1:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-21 12:48 Question about checksums Holger Kiehl
2003-08-21 13:20 ` Luciano Miguel Ferreira Rocha
2003-08-21 16:36   ` Holger Kiehl
2003-08-21 17:28     ` Jeff Woods
2003-08-22 20:18       ` Holger Kiehl
2003-08-23 20:31         ` printf(), aligning fields J.
2003-08-24  0:07           ` Glynn Clements
2003-08-24  1:05             ` Stephen Satchell
2003-08-21 18:19     ` Question about checksums Luciano Miguel Ferreira Rocha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).