PC Review


Reply
Thread Tools Rate Thread

App Config file?

 
 
SStory
Guest
Posts: n/a
 
      1st Sep 2003
Supposing that I want to store the SQL Server name in the app config file?

I suppose that storing the password there if encrypted wouldn't be bad or
would it?

If I could do that then I would probably need to include a utility program
for changing the database password right?
I mean the database password would get changed in the SQL Server but to tell
my app about it, I could encrypt and write the value to the app config and
have a util prog. To allow the user to change it.

Is this ok or is there a better way?

Shane


 
Reply With Quote
 
 
 
 
Tom Spink
Guest
Posts: n/a
 
      1st Sep 2003
If you need help on encryption, look at the System.Securty.Cryptography
namespace.

You won't be using password hashes if you need to extract the password, but
I have written a hash generator (HashGen) if you are interested.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"


"SStory" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Supposing that I want to store the SQL Server name in the app config file?
>
> I suppose that storing the password there if encrypted wouldn't be bad or
> would it?
>
> If I could do that then I would probably need to include a utility program
> for changing the database password right?
> I mean the database password would get changed in the SQL Server but to

tell
> my app about it, I could encrypt and write the value to the app config and
> have a util prog. To allow the user to change it.
>
> Is this ok or is there a better way?
>
> Shane
>
>



 
Reply With Quote
 
Rob Windsor
Guest
Posts: n/a
 
      2nd Sep 2003
Shane,

You might want to check out the Configuration Management Application Block
from the MS Patterns and Practices group. It has lots of cool features for
storing config data (including encryption).

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

--
Rob Windsor
G6 Consulting
Toronto, Canada



"SStory" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Supposing that I want to store the SQL Server name in the app config file?
>
> I suppose that storing the password there if encrypted wouldn't be bad or
> would it?
>
> If I could do that then I would probably need to include a utility program
> for changing the database password right?
> I mean the database password would get changed in the SQL Server but to

tell
> my app about it, I could encrypt and write the value to the app config and
> have a util prog. To allow the user to change it.
>
> Is this ok or is there a better way?
>
> Shane
>
>



 
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
Why this web config cannot reference an external config file? dh Microsoft C# .NET 0 2nd Oct 2009 12:12 AM
encrypting config file that aren't web config files... Ollie Riches Microsoft ASP .NET 1 4th Dec 2008 04:59 PM
Wiring up an App.Config file - deploying the App.Config file dbuchanan Microsoft Dot NET 12 27th Jul 2007 05:33 PM
sharedListeners config in app.config file doesn't recognize customlocation attribute RJ Microsoft Dot NET 0 1st Nov 2006 08:48 PM
using ReadXml to read exe.config file into Grid and update the exe.config using WriteXml hazz Microsoft C# .NET 0 7th Jul 2006 10:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:59 PM.