Encrypting strings in an ASP.NET 2.0 configuration file

Today, a small group of us learned heaps walking through the WCF hands-on labs from PDC05.

In the course of walking through the WCF exercises, we stumbled across an encrypted connection string in a Web.Config file.  Encrypting that string seemed like a good idea to me, but we didn't know how to go about encrypting it with ease.  Scott Forsyth's weblog contained the gem:

https://weblogs.asp.net/owscott/archive/2005/07/29/421063.aspx

ASP.NET 2.0 will automatically decrypt the strings when it comes across them.