Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Encrypted Connection String

 
 
Scott M.
Guest
Posts: n/a
 
      12-14-2003
How would I go about taking my DB connection strings and putting them into
my Web.Config file in encrypted form? Of course, I'd need to know how to
call and decrypt them from the various .aspx pages that need the info.

Thanks!


 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      12-15-2003
Hi Scott,

Normmally, the client user can't access the web.config and we can consider
the connection string is safe without encryption. If you do want to encrypt
a string in web.config, you may take a look at classes in
System.Security.Cryptography Namespace:

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemSecurityCryptography.asp

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      12-15-2003
Hi Luke. Thanks for your reply. The link you posted will be helpful. The
only comment I have is that "normally" the client user can't get the the
source code of the ASP.NET page either, but we don't consider putting
connection strings in them a safe thing to do so encryptioin AND using
web.config gives us a second and third line of defense.



"MSFT" <> wrote in message
news:...
> Hi Scott,
>
> Normmally, the client user can't access the web.config and we can

consider
> the connection string is safe without encryption. If you do want to

encrypt
> a string in web.config, you may take a look at classes in
> System.Security.Cryptography Namespace:
>
>

http://msdn.microsoft.com/library/de...us/cpref/html/
> frlrfSystemSecurityCryptography.asp
>
> Luke
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>



 
Reply With Quote
 
Guest
Posts: n/a
 
      12-15-2003
The November issue of MSDN magazine has an article on this
topic.
>-----Original Message-----
>Hi Luke. Thanks for your reply. The link you posted

will be helpful. The
>only comment I have is that "normally" the client user

can't get the the
>source code of the ASP.NET page either, but we don't

consider putting
>connection strings in them a safe thing to do so

encryptioin AND using
>web.config gives us a second and third line of defense.
>
>
>
>"MSFT" <> wrote in message
>news:...
>> Hi Scott,
>>
>> Normmally, the client user can't access the web.config

and we can
>consider
>> the connection string is safe without encryption. If

you do want to
>encrypt
>> a string in web.config, you may take a look at classes

in
>> System.Security.Cryptography Namespace:
>>
>>

>http://msdn.microsoft.com/library/default.asp?

url=/library/en-us/cpref/html/
>> frlrfSystemSecurityCryptography.asp
>>
>> Luke
>> Microsoft Online Support
>>
>> Get Secure! www.microsoft.com/security
>> (This posting is provided "AS IS", with no warranties,

and confers no
>> rights.)
>>

>
>
>.
>

 
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
Encrypted Connection String and Security....Quick Question Ranginald ASP .Net 2 02-06-2007 12:19 AM
ASP.NET 2.0 Encrypted Connection String JohnMSyrasoft ASP .Net Security 1 04-12-2005 04:11 PM
Size of Entropy with Dpapi Encrypted Connection String Phil C. ASP .Net Security 8 03-17-2005 07:01 AM
Loose encrypted connection after re-boot joekohn@att.net Wireless Networking 0 12-26-2004 03:51 AM
Using encrypted dB connection string Alek Davis ASP .Net 12 06-03-2004 06:20 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57