Credential Locker

Encrypted and roamed storage for Password-Credential objects

Save Credential

void SaveCredential(string username, string password)
{
  PasswordVault vault = new PasswordVault();
  PasswordCredential credential = new PasswordCredential("MyCredential", username, pasword);
  vault.Add(credential);
}

Read Credential

IReadOnlyList<PasswordCredential> ReadCredential(string resource)
{
  PasswordVault vault = new PasswordVault();
  return vault.FindAllByResource(resource)
}