file checksum?

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Mon Sep 30 15:13:34 UTC 2013


Hi,

I would like to do some kind of "checksum" on files (full or partial
content) in order to catch unwanted changes (accidental or malicious).
How would you do it?

So far, I found
    - MD/SHA digests from OpenSSL -- I'm worried about speed, and being
      dependent on yet another library.
    - crypt() from glibc -- It can do MD5/SHA, but it has to be a single
      string.  It can't do multiple strings.

Is there user-callable CRC routines in glibc?  Curiously, I can't find
one, even though I'm told that TCP stack uses it internally.
-- 
William
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list