How to access saved credentials (PasswordVault?) On Win7 and Win8?

I just found that in Win8 there is a section on the control panel called "User Accounts and Family is Safe with Credential Manager". I would like to access the credentials stored there (not to extract passwords, but use them as tokens for logging in). So, basically, I would like to go to the already installed software.

The closest to the solution was proposed in this discussion and it is not that closes.

  • Where can I find the assembly for Windows.Security.Credentials.PasswordVault? I work at Google for two hours, but I get application development information while I plan the desktop.

  • Is there a way to allow access to pre-saved credentials for both Win7 and Win8? . I am a little afraid that the storage was reconstructed in Win8, it is impossible to immediately target both platforms.

+7
source share
3 answers

How to add or remove links. Using the link manager says:

In projects on the desktop, the Core tab is not displayed by default. You can add Windows Runtime by opening the context menu for the project node, selecting Unload Project , adding the following fragment, and reopening the project (in the node project, select Refresh Project ). When you call up the Reference Manager dialog box, the Core tab appears.

<PropertyGroup> <TargetPlatformVersion>8.0</TargetPlatformVersion> </PropertyGroup> 

Be sure to check the Windows window on this tab. Then you should be able to use WinRT elements.

+6
source

I ran into the same problem and found out that there is no easy answer.

Here is what I found:

  • You need to unload the project and add TargetPlatformVersion as above.
  • Add the link: C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\Annotated\Windows.winmd
  • Also add the link: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll
+4
source

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(); 
+2
source

All Articles