I think maybe I missed something then. I thought the original question contained the binary hash string, and it was only 9 characters. Your transforms would not return 128 bits on that basis.
Maybe I'm misunderstanding the MD5 hash althogether, but I thought it had to return 128 bits regardless of the string length.
On the other hand, I don't have foxcrypto, so I don't really know anything about what it does or returns.
Alan
>Alan,
>
>The code I posted would conver binary hash retuned by foxcrypto.dll into hexadecimal string but Daniel provided better solution elsewhere in this thread.
>
>>I don't think that's really a MD5 hash, Sergey. MD5 is a sort of checksum algorithm.
>>
>>Alan
>>
>>>Try
lcCalcHash = ""
>>>FOR x = 1 TO LEN(lcHashString)
>>> lcCalcHash = lcCalcHash + RIGHT(TRANSFORM(ASC(SUBSTR(lcHashString,x,1)),'@0'),2)
>>>ENDFOR
>>>