Indy 10 - "T4x4LongWordRecord" to "string" in .NET

Giganews Newsgroups
Subject: Indy 10 - "T4x4LongWordRecord" to "string" in .NET
Posted by:  Carl (no…@none.com)
Date: Sun, 4 Apr 2004

Hello,

I have a simply function that create Hash value of a string.

I'm converting this function to the .NET with Delphi 8

But I have an error on the "Move()" function
"undeclared identifier".

How can I convert a "T4x4LongWordRecord" into a "string" of 16 chrs?

Thank you.

---

var
Digest: T4x4LongWordRecord;
sHash, sN : string;

begin

SetLength(sHash, 16);
sN := 'abc';

with TIdHashMessageDigest5.Create do begin
    Digest := HashValue(sN);
    Move(Digest, sHash[1], 16);
    sHash := fnMDConvertLines('MD5',sHash,sN);
    Free;
end;

end;

Replies