I\'m currently using this code for md5 hashing in Delphi 7:
function MD5(const fileName : string) : string; var idmd5 : TIdHashMessageDigest5; fs : TFile
Compare your results with:
md5(file_get_contents( )) in PHP
md5(file_get_contents( ))
hash("md5", ) from the PHP hash framework extension
hash("md5", )
the command line programs md5(1) aka md5sum(1)
If all but one agree what the sum is, then you know where to dig.