Using the Windows.Security.Credentials.PasswordVault
class, I can access the passwords stored under "Web Credentials" in the Windows Credential Manager:
using System;
using Windows.Security.Credentials;
class Program {
static void Main(string[] args) {
PasswordVault vault = new PasswordVault();
foreach (var cred in vault.RetrieveAll()) {
cred.RetrievePassword();
Console.WriteLine("Resource: {0}", cred.Resource);
Console.WriteLine("UserName: {0}", cred.UserName);
Console.WriteLine("Password: {0}", cred.Password);
}
}
}
I would like to know if there's a way to retrieve the credentials stored under "Windows Credentials" instead.
Windows.Security
in a desktop app, check here: #14813870 – Ajani