Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encrypting password
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01669695
Message ID:
01669699
Views:
64
1. You can use different key for Chipher function for password
2. You can store bogus value in the password tag in XML and add another tag with obscure name and store password there base64 encoded

Either way your application should handle password change not the client


>
>I am sure I have multiple threads about encrypting a password. But this one is a new sub-topic (I believe).
>
>In my VFP 9 application the credentials to the SQL Server are stored in an XML file. The User Name and the Password. The XML has other settings but they are not important for this thread.
>It has been working this way for many years for many customers and nobody has ever complained.
>This year I have a new customer. They sent me an email this morning that the Security Officer noticed that the password in the XML file is clearly readable and changeable. So, they ask me to encrypt it.
>
>I can do it using the Cipher function (which is used in many other places of my app). But I won't share with them the Cipher key (string used in the Cipher function). Many internals of my app depend on this key. And I don't want to change the design of the application just for one customer. I explained to the customer (in the email) that if I do what they ask for, I will be the only person who will be able to change the password. Which puts them in a precarious situation if I ever go out of business or not available to maintain the app. I have not heard from them as to what they think about this scenario.
>
>Meanwhile I have a question. Is there a simple encryption (e.g. API function) in Windows 7 and 10 that I would use it to encrypt the password and call from the VFP 9 application to decrypt? If this were possible, they would be able to encrypt the password (in case it changes in the future) without my help.
>
>Again, I emphasize, I don't want to change the application in the way it reads the XML file. The only thing I willing to do, if possible, is to call some internal Windows function to decrypt the password.
>
>TIA
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform