These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: What is the best way to protect the connection string?
PostPosted: Wed May 21, 2008 10:21 am 
Newbie

Joined: Thu Jul 19, 2007 2:46 pm
Posts: 12
Hi

I am developing a desktop application and thinking in how encrypt, hide or something like that, to protect the connection string in the app.config file, i was searching in this forum and in the web to find a good solution but found nothing for desktop only for web based application“s

Anyone has a good solution to this problem??

thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 23, 2008 3:12 pm 
Newbie

Joined: Mon Jun 04, 2007 12:26 pm
Posts: 13
Location: Houston, Texas
My app retrieves encrypted connection information. However it is not stored in the app.config file - even though it does have a bogus string in it. It's stored in a different location since the nHibernate module is an add on to an existing app. After decrypting I use the Configuration class SetProperty method to assign the connection string. You could also skip the app.config all together and create the connection string programatically.

Hope that helps.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.