Where and how to save SQL Server authentication in C#? -


i developing c# windows forms application connects sql server 2008. , allowing user configure connection sql server when running app first time using form created, allow user chose between windows or sql authentication.

in windows authentication save connection string in appconfig, when using sql authentication cannot save username , password of sql server there because exposed using computer because it's xml file, , don't want encrypt password key because heard it's easy decrypt , can't use hash because not able connect server hashed password.

i searched lot online , didn't find related should ?

thanks

encrypt password before storing in app.config.

you can find info on how encrypt string in answer(s) stackoverflow question: encrypt/decrypt string in .net


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -