Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > DB Connection String

Reply
Thread Tools

DB Connection String

 
 
A.M
Guest
Posts: n/a
 
      01-19-2004
Hi,

I need to store the database connection string inside web.config file. What
would be the best way to encrypt and decrypt it?

Thanks,
Ali


 
Reply With Quote
 
 
 
 
Joe Kaplan \(MVP - ADSI\)
Guest
Posts: n/a
 
      01-19-2004
The Configuration Management Application Block has nice built in support for
this as well as some other useful features. You might give that a swing.

http://msdn.microsoft.com/library/de...asp?frame=true

Joe K.

"A.M" <> wrote in message
news:%...
> Hi,
>
> I need to store the database connection string inside web.config file.

What
> would be the best way to encrypt and decrypt it?
>
> Thanks,
> Ali
>
>



 
Reply With Quote
 
 
 
 
Alek Davis
Guest
Posts: n/a
 
      01-20-2004
Ali,

Check this tool: http://www.obviex.com/cipherlite/. It is not very secure,
though (but neither is Configuration Management Application Block, since -
if I understand it correctly - it requires the encryption key to be stored
in plain text on the same system). Anyway, either option is still better
than keeping data unencrypted.

Alek

"A.M" <> wrote in message
news:%...
> Hi,
>
> I need to store the database connection string inside web.config file.

What
> would be the best way to encrypt and decrypt it?
>
> Thanks,
> Ali
>
>



 
Reply With Quote
 
Hernan de Lahitte
Guest
Posts: n/a
 
      01-20-2004
Actually, the CMAB have a built-in security provider (DPAPIDataProtection
implementation) that no needs any key management to protect sensitive data.

http://msdn.microsoft.com/library/de.../html/cmab.asp




--
Hernan de Lahitte - MSDE
Lagash Systems S.A. - Buenos Aires, Argentina
http://www.lagash.com



"Alek Davis" <alek_xDOTx_davis_xATx_intel_xDOTx_com> wrote in message
news:#...
> Ali,
>
> Check this tool: http://www.obviex.com/cipherlite/. It is not very secure,
> though (but neither is Configuration Management Application Block, since -
> if I understand it correctly - it requires the encryption key to be stored
> in plain text on the same system). Anyway, either option is still better
> than keeping data unencrypted.
>
> Alek
>
> "A.M" <> wrote in message
> news:%...
> > Hi,
> >
> > I need to store the database connection string inside web.config file.

> What
> > would be the best way to encrypt and decrypt it?
> >
> > Thanks,
> > Ali
> >
> >

>
>



 
Reply With Quote
 
Alek Davis
Guest
Posts: n/a
 
      01-20-2004
Yes, but DPAPI has quite a few limitations. For example, in the plain form,
it cannot be used by ASP.NET (or any other Web) applications, and the
question was about Web.config, so DPAPI is not going to help here.

Alek

"Hernan de Lahitte" <> wrote in message
news:...
> Actually, the CMAB have a built-in security provider (DPAPIDataProtection
> implementation) that no needs any key management to protect sensitive

data.
>
>

http://msdn.microsoft.com/library/de.../html/cmab.asp
>
>
>
>
> --
> Hernan de Lahitte - MSDE
> Lagash Systems S.A. - Buenos Aires, Argentina
> http://www.lagash.com
>
>
>
> "Alek Davis" <alek_xDOTx_davis_xATx_intel_xDOTx_com> wrote in message
> news:#...
> > Ali,
> >
> > Check this tool: http://www.obviex.com/cipherlite/. It is not very

secure,
> > though (but neither is Configuration Management Application Block,

since -
> > if I understand it correctly - it requires the encryption key to be

stored
> > in plain text on the same system). Anyway, either option is still better
> > than keeping data unencrypted.
> >
> > Alek
> >
> > "A.M" <> wrote in message
> > news:%...
> > > Hi,
> > >
> > > I need to store the database connection string inside web.config file.

> > What
> > > would be the best way to encrypt and decrypt it?
> > >
> > > Thanks,
> > > Ali
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set the connection pool size in the Sybase connection string? Wei Lu ASP .Net 2 02-16-2009 09:51 AM
Web.config: connection string or connection key? rlueneberg@gmail.com ASP .Net 3 08-03-2007 09:37 PM
Connection String object Convert to String Variable Type =?Utf-8?B?TWlrZSBNb29yZQ==?= ASP .Net 2 10-26-2004 02:43 PM
Re: String.replaceAll(String regex, String replacement) question Mladen Adamovic Java 0 12-04-2003 04:40 PM
connection string exception : Format of the initialization string does not conform to specification starting at index 0 Gaurav ASP .Net 0 11-07-2003 10:24 AM



Advertisments