Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hash Values
Message
De
03/12/2003 01:47:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Divers
Thread ID:
00855264
Message ID:
00855313
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform