convert md5digest to HEX?

Dave Cragg dcragg at
Tue Nov 11 04:28:55 EST 2003

At 9:26 pm -0800 10/11/03, kee nethery wrote:

>Is there a way to use baseConvert or binaryDecode to convert an 
>md5digest result to hex?

I use this function:

function hexDigest pvalue
   local tRes
   put md5Digest(pValue) into tMD5
   get binaryDecode("H*",tMD5,tRes)
   return tRes
end hexDigest

It gives the same results as the perl md5_hex method.


More information about the Use-livecode mailing list