I write test automation and scripts that require Windows authentication to access a domain.
I do not like to store them in app.config because they are available in plain text.
I don't like the input request, because then it is no longer automated.
If I hardcode them in the assembly, they are visible from the .Net Reflector and they will be checked in the original control when I transfer the .cs files.
There is a pattern / practice that simplifies the use of customized usernames and passwords without exposing them.
This also applies to websites that have login credentials and for databases use Windows authentication or SQL Server authentication to connect.
Any advice would be greatly appreciated.
security c # passwords testing credentials
Jeremy e
source share