Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strconv() question
Message
From
02/11/2006 13:01:07
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01166631
Message ID:
01166650
Views:
17
Don,

Interesting idea. I will keep this in mind if Lisa's suggestion does not work.

>An OLD trick I did in earlier times was to tack on (at beginning or end), a special character(s)... such as "!@#" but only AFTER the encryption, then I could check the raw value coming in...
>
>
>if left( lcTestVal, 3 ) == "!@#"
>  */ Already encrypted via the save of extra string...
>else
>  lcEncrypt = YourFunction( lcTestVal)
>  */ only tack on after encryption to prevent false encryption value
>  lcSaveEncrypt = "!@#" + lcEncrypt
>endif
>
>
>
>if it didn't have the "!@#", then I knew I had to encrypt it... When needed after for decrypting, be sure to likewise, strip it off..
>
>
>if left( lcTestVal, 3 ) == "!@#"
>  */ Already encrypted via the save of extra string...
>  lcDecryptBasis = substr( lcTestVal, 4 )
>  */ Now, decrypt the lcDecryptBasis field
>endif
>
>
>
>
>>Hi All
>>
>>I am using vfpencryption.fll in encrypt a user's password and then I am using strconv(password,15) to convert the results so it will store in a database easier. I have run into an issue trying to test if the password is encrypted so I don't try and encrypt it twice. Is there a way to test if a string has been converted?
>>
>>Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform