Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Crypt - Creating A Hash Value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00852090
Message ID:
00853087
Vues:
18
>I'm trying to create a Hash Value from a string using _crypt.vcx but I don't understand how I'm suppose to do it.
>
>I figured out how to encrypt a string value but that's not what we're looking for... We just want the create a hash value from the string.
>
>TIA

Don't know about the _crypt.vcx but if you have CAPICOM http://www.microsoft.com/downloads/details.aspx?FamilyID=860ee43a-a843-462f-abb5-ff88ea5896f6&DisplayLang=en

You can get this by
oCrypt = NEWOBJECT('CAPICOM.HashedData')
oCrypt.Algorithm = 3  && CAPICOM_HASH_ALGORITHM_MD5
oCrypt.Hash('This is a Test')
? oCrypt.Value && This is the hash value
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform