What is the best way to store a user name and password for a Windows Service?
The service has to be able to access an MS SQL Server database on a remote machine. We have to support MS SQL Server authentication (mixed mode) instead of NT Authentication.
The DP API is the standard way of locally storing sensitive data on Windows. You didn’t mention the programming language you’re using, but in .NET this is exposed from the System.Security.ProtectedData class.