Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hash Values
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Miscellaneous
Thread ID:
00855264
Message ID:
00855418
Views:
20
>I'm storing passwords in a table that will be accessed through VFP and .NET
>
>If I use the Crypto Service Provider through Win32API in VFP I can generate a hash value from a string. That same value is generated everytime I call the function with my string.
>
>However, when I take the same string and run it through the .NET's Crypto Service Provider it generates a different hash value.
>
>I thought the CLR was an abstract layer on top of the Win32API? Why would I get different values?
>
>Has anyone found a work around or a way of generating the same hash values? Or am I doing something wrong?
>
>TIA

Hello,

Is it possible you have a Unicode string being passed in one instance and an ascii string in another.

You should try and use a byte array for test purposes to see if that solves your problem. What hash are you using? You might want to consider using HMAC-MD5 for the extra added layer of security if this is a sensitive application. HMAC adds password key to MD5 on top of the original hashing.
Brian Seekford
Seekford Solutions, Inc.
http://www.SeekfordSolutions.com
Internet ActiveX Controls and .NET Class Libraries.
SMTP/S FTP POP3/S HTTP/S SNTP MIME PING WHOIS TRACEROUTE NNTP DNS MX
Base64, UUEncode, yEnc, MD5, SHA1, URL, Quoted-Printable.
Resizer and Tooltips
Email Verification and more. Check us out!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform