TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > C#(C Sharp)

Notices

Connection Strings app.config and encrypting

C#(C Sharp)


Reply
 
Thread Tools Display Modes
Old 23-09-2007, 01:46 AM   #1
Amy L.
Guest
 
Posts: n/a
Connection Strings app.config and encrypting

I have a .Net 2.0 windows forms application where a user will supply a
connection string for their database server during initial
configuration. I want to make sure this string is encrypted when its
stored in the app.config file or whatever xml based configuration file I
use. I can encrypt the data using the built in crypto classes in .Net,
but the question comes in how can I securely store the keys used for
encryption.

Is there any best practices or advise on going about doing this? Maybe
something even built into .Net for this?

Amy.
  Reply With Quote
Old 23-09-2007, 04:30 PM   #2
raylopez99
Guest
 
Posts: n/a
Re: Connection Strings app.config and encrypting

On Sep 22, 11:42 am, "Amy L." <> wrote:
> I have a .Net 2.0 windows forms application where a user will supply a
> connection string for their database server during initial
> configuration. I want to make sure this string is encrypted when its
> stored in the app.config file or whatever xml based configuration file I
> use. I can encrypt the data using the built in crypto classes in .Net,
> but the question comes in how can I securely store the keys used for
> encryption.
>
> Is there any best practices or advise on going about doing this? Maybe
> something even built into .Net for this?
>
> Amy.


It's over my head. Crypto stuff is pretty complicated but I noticed
reading some ads in Dr Dobbs Journal that a number of people have
crypto libraries that are cheap (less than $500) and easy (they say)
to use in VS.

If you're a professional programmer, I would just buy one of those.

RL


  Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert strings to/from C# syntax? Michael A. Covington C#(C Sharp) 3 19-09-2007 02:30 PM
Strings AA2e72E C#(C Sharp) 19 19-09-2007 01:31 PM
Connection Strings - 4 a Newbie Miro VB.NET 1 07-09-2007 05:31 PM
Encrypting VBA code behind Excel File JimRWR Windows Security 0 28-08-2007 12:41 PM
Encrypting VBA code behind Excel File JimRWR Windows Security 0 28-08-2007 12:40 PM


< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 07:29 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional