How to get a checksum for a disk file?
Posted on 1997-10-30
I want to be able to quickly compare two disk files to see
if they are identical. I have the ability to remember
information about the files, so it would be handy to keep
checksums for older files, and then just checksum new files
as they come in and compare the results.
Short of writing the checksumming code myself, is there a
way of generating checksums on Windows files? (Appearances
to the contrary notwithstanding, this is not actually a
yes/no question; please do not respond unless you can
actually point me at something useful. :-)
I'm using Borland C++ on Win32.
Extra credit (but no extra points :-): It'd be nice to be
able to generate the checksums on buffers in memory as well.