![]() Var securePassword = new SecureString(passwordChars, password. Throw new ArgumentNullException("password") Open a command prompt, or enter the following in the run command rundll32.exe keymgr. It stores both certificate data and also user passwords. Public static SecureString ConvertToSecureString(this string password) 4 Answers Sorted by: 79 The utility to delete cached credentials is hard to find. This example is an extension method for the string class that I have seen here using System.Security Ask your user to type again the password and the resulting input should be transformed into a SecureString ![]() So, in my thinking, you are left with only one option. Obviously the OS has no API or method that allows a non trusted program to retrieve the password of the current user (it would be the biggest security bug ever heard of). What you need is a SecureString instance and a SecureString cannot be created passing a simple string to its constructor. ![]() ![]() The ProcessStartInfo.Password is not a simple string that you can write down and assign to the property. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |