Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encrypt/Decrypt String with Alpha-Numeric only result
Message
From
14/04/2004 21:30:24
 
 
To
14/04/2004 18:17:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00894856
Message ID:
00894988
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform