I am developing an app (in windows phone 7) that manages basic data: customer data (or contacts) and orders
I want to protect the credentials to access to the database. I want to do the following:
xxx.dll
I have put the credentials in the dll (obfuscated)
zzz.dll
In other DLL (obfuscated too) I do this:
when you install the application: I read the credentials in xxx.dll and stored them in an encrypted file (using DPAPI)
In this DLL (zzz.dll) I have a function to return decrypted credentials (using DPAPI). This func is called in the app