<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Encrypting the connection string in ASP.NET V2.0</title><link>http://weblogs.asp.net/owscott/archive/2005/07/29/Encrypting-the-connection-string-in-ASP.NET-V2.0.aspx</link><description>ASP.Net V2.0 has much improved encryption over v1.x including the ability to encrypt any part of the connection string. Of course there is some performance overhead to do this so only sections that have sensitive information should be encrypted. I really</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Encrypting the connection string in ASP.NET V2.0</title><link>http://weblogs.asp.net/owscott/archive/2005/07/29/Encrypting-the-connection-string-in-ASP.NET-V2.0.aspx#2182657</link><pubDate>Thu, 05 Apr 2007 14:37:51 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2182657</guid><dc:creator>don</dc:creator><author>don</author><description>&lt;p&gt;Mr.Simplistic:&lt;/p&gt;
&lt;p&gt;You have a point but wouldn't that require write access to the directory where looking at a web.config to get an unencrypted connection string would only require read access. &lt;/p&gt;
&lt;p&gt;Also, if you are using source control and have an unencrypted connection string in your web.config then someone only needs to view the checked in source to get the info.&lt;/p&gt;
&lt;p&gt;I think it is not a solution to the entire problem, just common sense. Like locking a door is a good idea even if it won't stop a serious thief.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2182657" width="1" height="1"&gt;</description></item><item><title>re: Encrypting the connection string in ASP.NET V2.0</title><link>http://weblogs.asp.net/owscott/archive/2005/07/29/Encrypting-the-connection-string-in-ASP.NET-V2.0.aspx#1865569</link><pubDate>Fri, 02 Mar 2007 13:44:43 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1865569</guid><dc:creator>Flure</dc:creator><author>Flure</author><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://wavefrontguidedlasik.site.cx"&gt;http://wavefrontguidedlasik.site.cx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks ;) Good luck!!!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1865569" width="1" height="1"&gt;</description></item><item><title>how i create a connection string in web config in asp.net</title><link>http://weblogs.asp.net/owscott/archive/2005/07/29/Encrypting-the-connection-string-in-ASP.NET-V2.0.aspx#1263197</link><pubDate>Mon, 18 Dec 2006 06:47:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1263197</guid><dc:creator>abhishek</dc:creator><author>abhishek</author><description>&lt;p&gt;i have create a connection string in asp.net but i required it reflect in all the pages what can i do&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1263197" width="1" height="1"&gt;</description></item><item><title>Encryptage de fichier de config</title><link>http://weblogs.asp.net/owscott/archive/2005/07/29/Encrypting-the-connection-string-in-ASP.NET-V2.0.aspx#808740</link><pubDate>Sat, 04 Nov 2006 01:59:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:808740</guid><dc:creator>Cyril 's Blog</dc:creator><author>Cyril 's Blog</author><description>&lt;p&gt;Les fichiers de configuration d'une application .net est un fichier XML donc lisible et compr&amp;#233;hensible&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=808740" width="1" height="1"&gt;</description></item><item><title>More on encrypting parts of web.config</title><link>http://weblogs.asp.net/owscott/archive/2005/07/29/Encrypting-the-connection-string-in-ASP.NET-V2.0.aspx#476109</link><pubDate>Tue, 22 Aug 2006 14:57:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:476109</guid><dc:creator>Visual Studio 2005/SQL Server 2005 Community Launch Event</dc:creator><author>Visual Studio 2005/SQL Server 2005 Community Launch Event</author><description>&lt;p&gt;Just a few more notes on encrypting parts of web.config: 1.0/1.1 through hotfix: &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/default.aspx?scid=kb;en-us;3292902.0:http://channel9.msdn.com/wiki/default.aspx/Channel9.HowToEncryptConfigurationSectionsUsingRsaInAspNet20?diff=ysee"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;3292902.0:http://channel9.msdn.com/wiki/default.aspx/Channel9.HowToEncryptConfigurationSectionsUsingRsaInAspNet20?diff=ysee&lt;/a&gt;..&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=476109" width="1" height="1"&gt;</description></item><item><title>re: Encrypting the connection string in ASP.NET V2.0</title><link>http://weblogs.asp.net/owscott/archive/2005/07/29/Encrypting-the-connection-string-in-ASP.NET-V2.0.aspx#472890</link><pubDate>Sun, 20 Aug 2006 05:51:46 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:472890</guid><dc:creator>Mr.Simplistic</dc:creator><author>Mr.Simplistic</author><description>&lt;p&gt;This is probably going to be a very silly question as I am still learning / not quite up to speed with the encryption side of things, but...&lt;/p&gt;
&lt;p&gt;As I understand, the whole point of encrypting web.config sections (including connection strings) is to avoid having a plain-text password &amp;quot;exposed&amp;quot;, should someone gains file access to the application directory.&lt;/p&gt;
&lt;p&gt;However, couldn't that someone simply put an aspx page to display connection string in plain text after getting the system to decrypt it, regardless of where any of the keys are stored?&lt;/p&gt;
&lt;p&gt;The only way I can see this being avoided is hard-coding an entropy of some kind, using custom decryption - e.g. at logon authentication, manually accessing the database or creating a custom role and memebership providers with manual interaction with database...&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=472890" width="1" height="1"&gt;</description></item></channel></rss>