Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a Checksum to encode/decode a string..
Message
From
27/10/2003 13:14:39
 
 
To
27/10/2003 08:05:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00842846
Message ID:
00843141
Views:
29
>I use STRCONV([test123],13) to encode, STRCONV([test123],14) to decode.
>See the VFP help


Jose:

Note that this is just a conversion between plain text and Base64. It is not data encryption by any means.

Tim's question was about the use of a checksum with SYS(2007). A checksum is a simple (not super accurate) way to compare two strings to see they are the same. It could be used to compare passwords or the contents of a file to detect tampering. It is feasible to create a string that will match a checksum though. A better way is to use strong encryption in the form of a hash (MD5 for example). Note that a hash, (and checksum) are one-way values (i.e. you cannot get the original text back).

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
Reply
Map
View

Click here to load this message in the networking platform