在凭据管理器服务存储凭据 [英] Storing Credentials in Credential Manager Service

查看:380
本文介绍了在凭据管理器服务存储凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些凭据(用户名和密码),我想不通的地方来存储它们。

I have some credentials (username and a password), and I cannot figure out where to store them.

我听说过的应用程序存储在Windows凭据服务凭证,以便我看着这个选项。这似乎理想。只是敏感信息存储在Windows服务,而不必担心它们存储在自己的注册表项。

I heard about an application storing credentials in the Windows Credential Service, so I looked into this option. It seemed ideal. Just store sensitive information in a Windows Service, and not have to worry about storing them in your own registry key.

不幸的是,我很快发现这并不是那么简单。我在MSDN中发现的唯一的帮助是C.然后我想我必须一直错,但后来我下载了该隐,看见解码凭据管理器密码的条目。

Unfortunately, I soon found out this was not so simple. The only help I found in MSDN was in C. I then thought I must have been mistaken, but then I downloaded Cain, and saw an entry for decoding credential manager passwords.

有没有使用.NET此功能的方法吗?请让我知道。

Is there a way to use this feature in .NET? Please let me know.

推荐答案

您必须使用互操作使用凭据管理API在.NET中,但幸运的是,别人已经做好最困难的工作:

You have to use interop to use the Credential Management API in .NET, but fortunately, somebody else has already done most of the hard work:

凭据管理与.NET Framework 2.0

这篇关于在凭据管理器服务存储凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆