You don't.
You use connection_string_name and encrypt the connection string in the
web.config


On Fri, Sep 26, 2008 at 3:54 PM, Bil Simser <[EMAIL PROTECTED]> wrote:

>
> The link provided is to encrypt web.config settings (which you can do
> much easily with K. Scott Allens blog post here:
> http://odetocode.com/Blogs/scott/archive/2006/01/08/2707.aspx).
>
> How do you encrypt the nhibernate.cfg.xml file so that it can be
> decrypted by NH at runtime?
>
> On Aug 14, 7:44 am, Jason Meckley <[EMAIL PROTECTED]> wrote:
> > there is a hibernate configuration setting to ge the connection string
> > from the config file. The connection strings within a config file can
> > be encrypted.
> http://www.google.com/search?q=encrypt+web.config+connection+strings
> > this should provide the security you require.
> > On Aug 14, 9:24 am, "Ricardo Borges" <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > I've had a problem.
> >
> > > My connection string (user and password db) can not be visible in
> web.config
> > > or hibernate.cfg.xml in the application server.
> >
> > > How toencryptit ?
> >
> > > []'s
> >
> > > R- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to