What's the difference between the Password Vault and the Credential Manager in Windows 8?

rikkit picture rikkit · Jul 11, 2012 · Viewed 9k times · Source

I'm using the CredentialPicker class in order to present a familiar UI. This, as expected, stores a credential in the Credential Manager of Windows. EDIT: sample code here

However, the recommended way to store username/passwords seems to be the PasswordVault API - Best practice for saving sensitive data in Windows 8 - which looks like a different system altogether?

What is the correct way to both 1. present the familiar UI and 2. add, access and remove username/ passwords in a metro-style app?

I'm using C#, but C++ and JS answers would be fine..

Answer

Michael S. Scherotter picture Michael S. Scherotter · Jul 11, 2012
  1. Use a Settings Pane to put your login fields into.
  2. Use the PasswordVault to store the credentials for your app.
  3. Take a look at this sample: http://code.msdn.microsoft.com/windowsapps/PasswordVault-f01be74a