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
Post a Comment