I build a website and i need to use web service. One of the function in the web service I need to send username and password and for that i want to store them somewhere in the website(in the server side).
I looked that i can store in the web.config in appSettings like : <add key="UsernameForWS" value="username"/>
and use in the class with ConfigurationManager.AppSettings["UsernameForWS"]
My question is what i found is secure or there is a better way to do this?