PC Review


Reply
Thread Tools Rate Thread

Config file settings

 
 
=?Utf-8?B?R2Vycnk=?=
Guest
Posts: n/a
 
      6th Apr 2004
I use the app.config file to store my SQL Connection String settings (currently using integrated security)

e.g.

<add key="MyDatabase" value="data source=MyPC\Development;initial catalog=MyDatabase;Integrated Security=SSPI;packet size=4096" /

Whilst I will use SQL authentication for some PCs I do not wish for the UID or PWD to be revealed on a live app
How can I use the config file safely to include SQL Authentication without revealing them in the released config file

Thank
Gerr

 
Reply With Quote
 
 
 
 
Palo Mraz
Guest
Posts: n/a
 
      6th Apr 2004
> Whilst I will use SQL authentication for some PCs I do not wish for the
UID or PWD to be revealed on a live app.
> How can I use the config file safely to include SQL Authentication without

revealing them in the released config file ?

Gerry, you might want to checkout this:

http://www.derkeiler.com/Mailing-Lis...2-01/0066.html

It's about web apps, but I think it might be wise to use the advice
(use integrated SQL Server security) for client apps as well.

Regards,

Palo

PS: Does your client apps connect directly to SQL Server? If yes, you
might want to add a tier or two :-)

--
http://dact.lamarvin.com/
AutoComplete component for WinForms applications. Easy to integrate, easier
to use!
http://www.vbinfozine.com/
An ordinary VB developer shares his own successes and failures


 
Reply With Quote
 
EricJ
Guest
Posts: n/a
 
      6th Apr 2004
you can keep an incrypted value in the config file decrypting it as you read
it in your app, if you yust want to prevent direct reading the easyest is to
add a number to the ascii value of the chars.
i know someone here is working on something to encrypt our own type of
config file, you could try that 2. Its all up to you and how safe do you
want to be.

eric

"Gerry" <(E-Mail Removed)> wrote in message
news:6088FD2A-0A6E-42A8-A228-(E-Mail Removed)...
> I use the app.config file to store my SQL Connection String settings

(currently using integrated security):
>
> e.g.
>
> <add key="MyDatabase" value="data source=MyPC\Development;initial

catalog=MyDatabase;Integrated Security=SSPI;packet size=4096" />
>
> Whilst I will use SQL authentication for some PCs I do not wish for the

UID or PWD to be revealed on a live app.
> How can I use the config file safely to include SQL Authentication without

revealing them in the released config file ?
>
> Thanks
> Gerry
>



 
Reply With Quote
 
Raymond Lewallen
Guest
Posts: n/a
 
      6th Apr 2004
Gerry,

Look at System.Security.Cryptography namespace.
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemSecurityCryptography.asp

HTH,

Raymond Lewallen


"Gerry" <(E-Mail Removed)> wrote in message
news:6088FD2A-0A6E-42A8-A228-(E-Mail Removed)...
> I use the app.config file to store my SQL Connection String settings

(currently using integrated security):
>
> e.g.
>
> <add key="MyDatabase" value="data source=MyPC\Development;initial

catalog=MyDatabase;Integrated Security=SSPI;packet size=4096" />
>
> Whilst I will use SQL authentication for some PCs I do not wish for the

UID or PWD to be revealed on a live app.
> How can I use the config file safely to include SQL Authentication without

revealing them in the released config file ?
>
> Thanks
> Gerry
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Do I Read Settings from the Config File? TC Microsoft VB .NET 2 11th Mar 2010 05:22 PM
Sharing Config File Settings headware Microsoft Dot NET 2 14th Jul 2009 05:10 PM
Flush my.settings to app.config file?? P Microsoft Dot NET 0 27th Jul 2007 07:45 AM
Flush my.settings to app.config file?? amperie@yahoo.com Microsoft Dot NET 0 26th Jul 2007 04:44 AM
Flush my.settings to app.config file?? amperie@yahoo.com Microsoft VB .NET 0 26th Jul 2007 04:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:33 AM.