Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encrypt/Decrypt String with Alpha-Numeric only result
Message
De
14/04/2004 21:30:24
 
 
À
14/04/2004 18:17:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00894856
Message ID:
00894988
Vues:
16
>I saw your thread about strconv() but how to do you decrypt the string back and get the original string you encrypted?

StrConv(cString,13) converts to Base64
StrConv(cString,14) reverses it

Note that Base64 is not encryption and it should be used to convert to printable characters that can be safely transferred (in an encrypted XML elemnet or a text file or whatever).

What I do is use strong encryption with the Windows CryptoAPI as shown in the mentioned articles, then convert to Base64 so you don't get funny characters that can make a mess as they can contain control chars.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform