How to store and retrieve credentials on Windows using C#
You can use the Windows Credential Management API. This way you will ask the user for the password only once and then store the password in Windows Credentials Manager. Next time your application starts and it needs to use the password it will read it from Windows Credentials Manager. One can use the Windows Credential … Read more