MSI Factory 2.3

Crypto.MD5DigestFromFile

Crypto.MD5DigestFromFile

This is the first topic This is the last topic  

Crypto.MD5DigestFromFile

This is the first topic This is the last topic  

OverviewExamples

string Crypto.MD5DigestFromFile (

string Filename )

Example 1

-- calculate the MD5 message digest for a file

-- note: edit this path so it points to an actual file :)

file = "C:\\MyFolder\\MyFile.htm";

strMD5 = Crypto.MD5DigestFromFile(file);

 

if (strMD5 ~= "") then

   Dialog.Message("MD5DigestFromFile","The MD5 digest for "..file.." is:\r\n\r\n"..strMD5);

else

   err = Application.GetLastError();

   Dialog.Message("Arooga! Arooga!","ERROR "..err..": ".._tblErrorMessages[err]);

end

Calculates the MD5 message digest for a file and shows the result in a dialog message.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us