>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.