c# - 如何在 Win7 和 Win8 上访问存储的凭据(PasswordVault?)?

标签 c# security passwordvault

我刚刚发现 Win8 的控制面板上有一个名为用户帐户和家庭安全的部分,其中包含凭据管理器。我想访问存储在其中的凭据(不是检索密码,而是将它们用作登录 token )。所以,基本上,我想搭上已经安装的软件。

最接近解决方案的建议已在 this discussion 中提出而且还不是接近。

  1. 在哪里可以找到 Windows.Security.Credentials.PasswordVault 的程序集?我已经在谷歌上搜索了两个小时,但我只获得了有关应用程序的信息开发,而我将以桌面为目标。

  2. 有没有办法解决对 Win7 和 Win8 的预存凭据的访问?我有点担心 Win8 中的保险库设施已被彻底改造,使其成为不可能同时针对两个平台。

最佳答案

How to: Add or Remove References By Using the Reference Manager说:

In the desktop projects the Core tab doesn’t appear by default. You can add the Windows Runtime by opening the shortcut menu for the project node, choosing Unload Project, adding the following snippet, and re-opening the project (on the project node choose Reload Project). When you invoke the Reference Manager dialog box, the Core tab appears.

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

Make sure to check the Windows box on this tab. You should then be able to use WinRT elements.

关于c# - 如何在 Win7 和 Win8 上访问存储的凭据(PasswordVault?)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14813370/

相关文章:

c++ - 如何在有安全限制的情况下安全地编译和执行c++程序?

c# - 我可以防止漫游存储在 PasswordVault 中的 PasswordCredential 吗?

c# - VS 2015 "if"条件执行到错误的 block

C#:如何使用 CategoryAttribute.Appearance 属性

c# - IL 代码与 IL 程序集 : is there a difference?

c# - Windows 8 中的密码库和凭据管理器有什么区别?

java - 在 JBoss EAP 7.0.0 中使用 Vault 时出现问题

c# - XMLDocument.Load(),十六进制值0x17,为无效字符

注入(inject) URL 的 Javascript

php - 我的网站中的一篇帖子浏览量正在迅速增加 - 有人正在玩我的网站