Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strconv() question
Message
 
To
02/11/2006 12:18:44
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:
01166646
Views:
17
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
Next
Reply
Map
View

Click here to load this message in the networking platform