Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternatives to Crypto
Message
 
 
À
09/05/2013 08:38:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01573156
Message ID:
01573231
Vues:
45
>>>>Hi,
>>>>
>>>>VFP 9 Help shows an example of Crypto Foundation Class which is based on Windows API routine. Given that VFP 9 was released several years ago (before even Window 7 was released), would it be practical to use it now? If not, what alternative would you recommend for encrypting a string (e.g. a password in XML file)?
>>>>
>>>>TIA.
>>>
>>>You don't encrypt a password - you hash it
>>>
>>>Then convert the hash to base64 and store it in the Xml
>>
>>I will look for the sample code on how to hash it in VFP 9. I think, if I remember correctly, you even posted such code somewhere in the past. Thank you.
>
>m5 hash with api - see here http://www.atoutfox.org/articles.asp?ACTION=FCONSULTER&ID=0000000627

I went through the example you posted. And it works; thank you.

Just curious about 2 things. In your example the value returned by ath(m.Digest) is f96b697d7cb7938d525a2f31aaf161d0 But when I run this code on my computer, the letter 'd' at the end is upper case. Is it because the difference in Cryptdll.dll? And do I understand that Cryptdll.dll is the Windows API. And if so, would this approach work if you hash the value in say Windows XP and then try to compare it in Windows 7, would it work?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform