>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.comInternet 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!