Possible duplicate:How to encrypt the connection string in WinForms 1.1 app.config?
What is the best way to protect connector line information in the app.config file for deployed winforms applications?
link
The safest way (assuming you have Windows clients and a supported database server) is to use integrated authentication and avoid distributing passwords with connection strings to everyone.
Data Source = servername; Initial Catalog = dbname; Integrated Security = SSPI;
. - .
, , EntLib.
.
: , , - , , , .
. , . , , , Windows.
: , .
http://guy.dotnet-expertise.com/PermaLink,guid,b3850894-3a8e-4b0a-aa52-5fa1d1216377.aspx
, , - . , ( ) . , , , . ? , , , , 99,9% . , . , , , , , . , - , . , .