I'm looking for a good way of calculating a checksum of an entire flash drive's contents.
Not a particular file, or a group of files, but the entire volume which is read only so it never changes.
Does anyone know of any C, C++, or C# code that can open a flash drive volume and read it byte for byte efficiently so I can feed this to say an MD5 or SHA1 hash algorithm?
I see lots of code for now to read files but I'd like to read the entire physical drive from beginning to end.