-->
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: Encryption of the database connection string in config file
PostPosted: Thu Sep 22, 2005 1:21 am 
Newbie

Joined: Fri Sep 16, 2005 12:10 pm
Posts: 3
In the config file I do not want to keep the NHibernate database connection string with user name and password information in plain text. What options do I have here?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 22, 2005 4:06 am 
Beginner
Beginner

Joined: Thu May 12, 2005 3:41 am
Posts: 24
Location: London, UK
You will need to leave the connection string out of the config file abd set the connection string programatically:
Code:
Configuration cfg = new Configuration().AddAssembly("MyAssembly");
cfg.Properties.Add("hibernate.connection.connection_string", myConnectionString);
ISessionFactory factory = cfg.BuildSessionFactory();


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.