Encrypting and Decrypting connection string

Posts   
 
    
yj
User
Posts: 39
Joined: 07-Aug-2007
# Posted on: 05-Sep-2007 09:50:57   

LLBLGen Pro 2.0 ASP.NET c# Oracle 10g

Hi guys, this time i face this requirement that my system shall not save the password inside the web.config files, instead it needs to be encrypted. I had now hardcoded the encrypted password into the web.config connection string, where shall i apply my decrypt function such that LLBL generated code can read in the correct connection string? I know that the DBUtil.ActualConnectionString properties can be used here, but that would means i have to set it in the first page of connecting, although it can be workable, but i would prefer to make it inside the web.config (web appl) or app.config files (windows project). Is there a way out? Thanks

regards, Pan

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 05-Sep-2007 10:25:05   

I know that the DBUtil.ActualConnectionString properties can be used here, but that would means i have to set it in the first page of connecting

I don't understand why you don't want to use the DBUtil.ActualConnectionString. But as far as I know that's the only way to do it. And since DBUtil.ActualConnectionString is global, you only need to set it once, maybe when the application starts, and that's it.