RSS

A Message Board, Guestbook, or Poll hosted for your website.
Iron Speed Technical Forums

Iron Speed > Forums > Using Iron Speed Designer V6.X > Encrypting passwords in web.config
 
Username:
Password:
 

Thread Tools Search This Thread 
Reply
 
Author Comment
 
balanscott
Registered: 10/26/09
Posts: 23

    11/03/09 at 11:35 AM
Reply with quote#1

Has anyone had a customer request to make the passwords field in the web.config files encrypted? I am seeing this as a new request and do not know if Iron Speed can support it.

Here is a specific article we have followed before other ASP.Net applications:

http://aspnet.4guysfromrolla.com/articles/021506-1.aspx

It specifically mentions this:
 
Each of these sections can optionally be encrypted, either programmatically or through aspnet_regiis.exe, a command-line tool. When encrypted, the scrambled text is stored directly in the configuration file. For example, if we were to encrypt the section above the resulting Web.config file might look like the following: (Note: a large chunk of the has been removed for brevity.)

I just wanted to check before offering this as a solution we consider..
dwelden
Avatar / Picture

Registered: 03/19/09
Posts: 29

    11/04/09 at 08:01 AM
Reply with quote#2

I have one Iron Speed application in Production that contains encrypted database credentials in the web.config. Not sure if Iron Speed will work with it in the Designer and in Cassini, as we have a custom MSI installation step where we replace the web.config file with an environment-specific version.

The decryption is handled by IIS for you so no additional coding in the application is required.
balanscott
Registered: 10/26/09
Posts: 23

    11/07/09 at 05:06 PM
Reply with quote#3

I was believeing that could be the case since the deployment would be seperate, just curious before we devoted too much time to it..

Thanks.
dwelden
Avatar / Picture

Registered: 03/19/09
Posts: 29

    11/10/09 at 02:44 PM
Reply with quote#4

One other thing to consider. If you are deploying to a web farm, you may need to generate a machine key and add it to the web.config to insure that all servers in the farm are decrypting with the same key. See http://www.orcsweb.com/articles/aspnetmachinekey.aspx or http://sharemypoint.wordpress.com/2009/04/15/machinekey-in-webconfig/ for more info. There are several machine key generators on the Internet if you want to 'shop around'.
Previous Thread | Next Thread
Reply

 
Bookmarks
 
Digg Diggdel.icio.us del.icio.usStumbleUpon StumbleUponGoogle Google
 
Download Iron Speed Designer

Privacy Statement