You can use a wrapped credential management package . This is an open source project. I tested it on Windows 7 and it works correctly.
To save your data, use the following code:
Credential saved = new Credential("username", "password", "MyApp", CredentialType.Generic); saved.PersistanceType = PersistanceType.LocalComputer; saved.Save();
And to load your data use:
Credential credential = new Credential { Target = "MyApp", Type = CredentialType.Generic }; credential.Load();
Ali Sepehri.Kh
source share