I\'m currently using this code for md5 hashing in Delphi 7:
function MD5(const fileName : string) : string; var idmd5 : TIdHashMessageDigest5; fs : TFile
Well, you didn't give a Delphi version number, but if you're on D2007 or later you might want to check out this article.