Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crypto and field widths
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00778530
Message ID:
00778538
Views:
17
>I'm finding that if I encrypt a 10 character string and place the result into a 20 character field - when I later decrypt the string I gat garbage characters after the (properly) decrypted string!
>
>Am I correct in assuming I either have to padr the string before encryption, or rtring the encrypted string before decryption?
>
>TIA

Yes. < s >

Since VFP fields are fixed length, you need to either PADR the string to encrypt, or you need to remove the trailing spaces before you attempt to decrypt the string.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform