关于如何让用户存储应用程序凭据的建议 [英] Recommendation on how to let users store credentials for an application

查看:89
本文介绍了关于如何让用户存储应用程序凭据的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Outlook加载项,允许用户使用其vonage帐户发起来自Outlook联系人的呼叫.此过程的一部分是用户必须输入他们的Vonage用户名,密码和电话号码.

I've created an outlook add-in which allows users to use their vonage accounts to initiate calls from Outlook contacts.  Part of this process is the user has to enter in their Vonage User name, password and phone number.

我假设用户配置文件目录中的一个文件或将值写入注册表将是这两个选项. (研究了app.config,但有一篇文章建议我不想走那条路,因为该应用程序将写入信息.)

I'm assumming either a file in the users profile directory or a writing the values to the registry will be the two options.  (Looked into the app.config but as an article suggested I don't want to go that route since the app will be writing info.)

我在这里主要关心的是对密码进行加密.

My main concern here is encrypting the password.

有任何建议或代码示例吗?

Any suggestions and or code examples?

谢谢.

 

推荐答案



一种选择是对凭据进行哈希处理并将其存储在应用程序的独立存储"中(请参阅 http://msdn.microsoft.com/zh-cn/library /3ak841sy(VS.80).aspx ).

使用诸如MD5提供程序之类的凭据哈希并存储它们.散列来自用户的输入,并查看其是否与存储的散列匹配.

希望这会有所帮助.

BR,
Tomi
Hi,

One option is to hash the credentials and store them in applications Isolated Storage (see http://msdn.microsoft.com/en-us/library/3ak841sy(VS.80).aspx).

Hash the credentials using something like the MD5 provider and store them. Hash the input from the user and see if it matches to the stored hash.

Hope this helps.

BR,
Tomi


这篇关于关于如何让用户存储应用程序凭据的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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