I have a ConnectionString
in my App.Config
File which is encrypted by DataProtectionConfigurationProvider
provider and Everything works fine In Solution A.
Then i build another Solution (Solution B) and add that App.Config
File into it's project. and try to decrypt that config file, and surprisingly Everything works fine too! while i expect the second solution could not decrypt the ConnectionString
.
Assume i deployed this project and in installation time, ask for SqlConnection
Informations, Like USERID
and PASSWORD
then decrypt them and put it into App.Config
File. everything is ok yet! But what would happen if someone else try to add generated App.Config
File (in the end user machine) and decrypt my ConnectionString
?
We try to encrypt such data so that no one else (except our program) can touch data.
- is that Logical that someone touch my data using solution B?
- If this is so, what can i do for keeping my data secure?
----------Editied ------------
By the way, I'm using User-Level Decryption and the project is a Windows Application Not a Web Application