Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,412 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,450 people online right now. Registration is fast and FREE... Join Now!




How to handle encryption decription of connection string ?

 
Reply to this topicStart new topic

How to handle encryption decription of connection string ?

gatewaytl
15 Oct, 2008 - 05:04 AM
Post #1

New D.I.C Head
*

Joined: 15 Oct, 2008
Posts: 1

Hi Friends,

I have created two functions that encrypt and decrypt the connection string in web.config. But whenever I want to use connection string. I have to always decrypt web.config and then again encrypt it back. Does there any other way which i can use.

I'm using section.SectionInformation.ProtectSection(" <encryption configuration provider> ") and section.SectionInformation.UnprotectSection()
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: How To Handle Encryption Decription Of Connection String ?
15 Oct, 2008 - 08:46 AM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,993



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Actually if you're using ASP.NET 2.0 you shouldn't need to decrypt it to use the connection string to open a connection to your database, since the SqlConnection (and OleDbConnection) know what to do, they do all the work for you.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 12:32PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month