how to use hashed password in impersonate of ASP.N

2019-05-06 16:15发布

问题:

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?

回答1:

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