>Thanks very much for the reply but I still don't understand how to transform a result like "B—ôK•R5$[$—9z“" which I get from MD5.FLL into a string like "42ca86fa7a6fbf3b05c82251a6af070e" which is what my client wants to see.
>
>Thanks Again...
You'll need to convert the byte string character-by-character using the ASC function, and then convert it to hex using TRANSFORM(). Your code would look something like:
FUNCTION ConvertToHex
LPARAMETER tcBinString
LOCAL cHexString, nCtr
cHexString = ''
FOR nCtr = 1 TO LEN(tcBinString)
cHexString = cHexString + LOWER(PADL(TRANSFORM(ASC(SUBST(tcBinString,nCtr,1)),'@O'),2,'0'))
ENDFOR
RETURN cHexString