>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?
Could it be OS-dependent? IIRC there were a couple of threads here where people were getting different results using the Win32API crypto services on different OSs.
As a side note, I understand that in practice, it's better to store the hash values than the actual passwords.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up