At 05:43 2009-09-26, Allen <[email protected]> wrote:
>Hi foxgang.
>I've hit a little snag I had not thought of with encryption. I save
>passwords to a table using vfpencryption71.fll and decrypt when required. I
>have been using alltrim(passwordfield) to get the string required for the
>task. But I just hit on one where the string saved actually ended with the
>space hence I got a partial password string on decrypt.
>Anyone been there done it can give some advice please
I have not been there, but you could do either of:
1) Make passwordfield a varchar column. (I do not know when
varchar got added so you might not have this option.)
2) Delimit the passwordfield value as in
">"+thevalue"<"
When you want to use the value, extract the value with
substr(alltrim(passwordfield),2,len(alltrim(passwordfield)-2))
HTH.
Sincerely,
Gene Wirchenko
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.