What is the best way to create and validate an MD5 file fingerprint?



I want to use WMI to create an MD5 fingerprint for a large file (>= 50
Mb).

How should I go about it?

I know of 3 (freeish) controls I can use:

1) http://www.slavasoft.com/porderandprice.htm
QuickHash Library 3.0 1 License = $149.95, but unlicensed use is
premitted - giving a 10 second program delay. The program is a dll,
it comes with comprehensive chm help

2) RSP Checksum OCX http://rspsoftware.clic3.net
340KB License: Free to try, $50(US) to buy. I haved looked
into the restrictions on this. This program is an ocx with basic chm
help

3) XStandard's MD5 Checksum Component, http://www.xstandard.com
This one is actually freeware. It's a dll with very basic
documentation (there are only two calls which can be made to it), but
they do give an ASP example in VBScript.

Alternatively, I can use ASP.NET 2.0 MD5 library.

Can someone who is more knowledgable tell me which is the easiest.

All I need to do is, backup my database, compute the MD5 checksum.
Save it to a file, FTP both the file and checksum and the recompute to
validate the file integrity. If there's an error I'll send myself an
email. This needs to be done periodically, once a week.

Apart from referencing the MD5 component I'm confident I can write the
two WMI scripts I need.

I'm inclined to go with the XStandard dll, as I have the example of
how to call their dll - unless someone will recommend a different
route.

.



Relevant Pages

  • MD5s of Unofficial patches and other mistakes
    ... Now that the official patch is out, ... I got too paranoid, for good reason. ... When I saw the source code, which works patching a DLL at run-time based ... I'm offered an MD5 from the SAME distributing site that serves the patch installer. ...
    (Bugtraq)
  • Re: Small, free DLL to compute MD5 file hashing?
    ... > DLL to hash files with MD5, but it's a bit old and too big. ... Ideally, that DLL should... ... code is written in 100% assembly language, ...
    (microsoft.public.vb.general.discussion)
  • Small, free DLL to compute MD5 file hashing?
    ... DLL to hash files with MD5, but it's a bit old and too big. ... I need to perform hashing to check if a file changed, and download it ...
    (microsoft.public.vb.general.discussion)
  • Re: Small, free DLL to compute MD5 file hashing?
    ... the only free DLL that takes a filename as input ... and spits out its hashing is XStandard's MD5 Checksum Component ... CryptoSys API costs US$159 ... License $129 Developer License $215 ...
    (microsoft.public.vb.general.discussion)
  • Re: Toast "Mac & PC" data DVD iso image corruption (Windows misread?)
    ... and found that the md5sums did not match on the W2K3 server or a ... and have the md5 checksum: ... format instead of "Mac & PC", the md5's matched, although I did ...
    (comp.sys.mac.apps)