4

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?

ala
  • 7,070
  • 13
  • 47
  • 54

1 Answers1

3

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

Ta01
  • 31,040
  • 13
  • 70
  • 99
  • thanks, I also found a windows application that encrypt the config file http://blogs.msdn.com/b/knowledgecast/archive/2008/07/29/encrypting-configuration-settings-in-net-2-0.aspx – ala May 26 '10 at 13:42