Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MD5 Hash
Message
From
04/07/2003 13:30:02
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00806917
Message ID:
00807045
Views:
22
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
>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform