Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can someone help test a MD5 hash value.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00777283
Message ID:
00780119
Vues:
12
Brian,

First off, thanks for taking the time to test that for me. I'm curious as to where the difference lies. I'm having a hard time trying to figure out if the problem lies in my interpretation of the 16 bit result or if the problem lies in the md5hash library routine I'm using.

Right now, I take the 16 bit value returned by md5hash() (in md5.fll) and run it through this routine:
* Calculate Hash Value Based On Transaction Values
lcString = "mytest123"

* Returns 16 bit value
lcHashString = md5hash(lcString)

lcCalcHash = ""
FOR x = 1 TO LEN(lcHashString)
   lcCalcHash = lcCalcHash + RIGHT(TRANSFORM(ASC(SUBSTR(lcHashString,x,1)),'@0'),2)
ENDFOR
Am I missing something here?

Rodd

>Using the Encoder Wizard ActiveX control I get:
>6aeefbd30e8761b88922398c0cd049ce
>for the character string of
>mytest123
>
>You can check it out at
>http://www.SeekfordSolutions.com/Products/EncoderWizard/
>
>Hope this helps.
>
>Brian Seekford
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform