How to hide XML configuration file

I just finished my application and finished it. And everything is working fine.

And then I notice the XML configuration file in the folder, so I click on it.

And here it is, my entire connections, as well as my remote sql server IP address, login name and password, which are visible for viewing.

I tried to delete the XML configuration file and run the program, it just creates the App_Data folder inside the default database folder.

Is there a way to hide the XML configuration file or make it unreadable, as it contains all the information about my connection.

Thank.

+3
source share
4 answers

Read this MS article on connection string protection:

https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/protecting-connection-information

(: .net) , .

+1

, . , , .

, . ( Integrated Security=SSPI , .) ( , ), ,

  • MS SQL Server
  • SQL Server AD , , .
+1

, .

, Connection.ConnectionString , WinDBG Visual Studio. , , , .

( ), , . . .

+1
source

All Articles