John Lam 1997 — 2026

Security and ASP.NET

Wow.

While randomly surfing the web during a break in my class, I found this incredible document. It’s a giant 608 page PDF document titled Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication.

While I have hardly read through the entire document yet, I discovered the answer to something that was bugging me during my personal journey towards application development with non-admin privileges. In an earlier entry in this web log, I described how I had to change the aspnet_wp.exe worker process to run under my domain account. However, I was really disappointed by the fact that I had to store my domain password in plain text inside of the machine.config file.

The answer, according to this document, is that I have to start using V1.1 of the frameworks. In the section on page 185 that talks about Process Identity in machine.config, it says:

“In the .NET Framework Version 1.1, ASP.NET provides the ability to encrypt the username and password and store it safely in a registry key.”

2 archived reader comments

Rick Childress (2002-11-20)

They read _your_ mind, John. Woohoo.

Michael Dunner (2003-01-10)

Actually, you don’t have to wait until version 1.1. You can download the a utility that will let you do it. Here is the KB article which describes how to use it. HOW TO: Use the ASP.NET Utility to Encrypt Credentials and Session State Connection Strings http://support.microsoft.com/default.aspx?scid=KB;EN-US;329290 Michael Dunner