Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Crypt - Creating A Hash Value
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00852090
Message ID:
00853087
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform