Re: problem with TIdHashMessageDigest5 on latest snapshot

Giganews Newsgroups
Subject: Re: problem with TIdHashMessageDigest5 on latest snapshot
Posted by:  Pibì
Date: Mon, 18 Dec 2006

Another thing, but this is the same problem...

function HashFile(const fileName : string):string;
var
  stream : TFileStream;
  hashObj : TIdHashMessageDigest5;
begin
  stream:=TFileStream.Create(fileName,fmOpenRead);
  hashObj:=TIdHashMessageDigest5.Create;
  result:=hashObj.HashStreamAsHex(stream);
  hashObj.Free;
  stream.Free;
end;

on C:\NTDETECT.COM, output is

5234DEB24C6703DEB868EC6C787CCEC8

with a command-line utility fromhttp://www.fourmilab.ch/md5/

[C:\]md5.exe ntdetect.com
B2DE3452DE03674C6CEC68B8C8CE7C78  ntdetect.com

ciao  Paolo

Replies

In response to

problem with TIdHashMessageDigest5 on latest snapshot posted by Pibì on Mon, 18 Dec 2006