如何在模拟ASP.NET时使用哈希密码 [英] how to use hashed password in impersonate of ASP.NET

查看:110
本文介绍了如何在模拟ASP.NET时使用哈希密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要以管理员用户身份模拟的ASP.NET应用程序。在web.config中:

 < identity impersonate =trueuserName =administratorpassword =password/> 

客户抱怨以明文形式保存密码。有没有一种方法可以将密码保存为哈希值?

解决方案

具有相应开关的aspnet_regiis应该执行此操作,请参阅本文。 / p>

I have an ASP.NET application that requires impersonation as an administrator user. In web.config:

<identity impersonate="true" userName="administrator" password="password"/>

The customer complained about saving the password in clear text format. Is there a way to save the password here as hashed?

解决方案

aspnet_regiis with the appropriate switch should do the trick, see this article.

这篇关于如何在模拟ASP.NET时使用哈希密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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