Store Connection Strings

J

John Wright

I need a good way to securely store my connection strings for my database.
Right now I have them in the program resources, but this could be reflected
out correct? In VB 6 I used a INI file that stored the values in an
encrypted format. So, what is the best way to do this in .NET?

John
 
Z

zacks

I need a good way to securely store my connection strings for my database.
Right now I have them in the program resources, but this could be reflected
out correct? In VB 6 I used a INI file that stored the values in an
encrypted format. So, what is the best way to do this in .NET?

I would store them in a XML file, encrypted. At least the password
encrypted.
 
C

Chris Dunaway

I need a good way to securely store my connection strings for my database.
Right now I have them in the program resources, but this could be reflected
out correct? In VB 6 I used a INI file that stored the values in an
encrypted format. So, what is the best way to do this in .NET?

John

Use the built in facility for encrypting the Connection Strings in the
app.config file:

http://www.developer.com/net/vb/article.php/3500906

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top