在数据层ConnectionString

string _connectionString = ConfigurationManager.AppSettings["ConnectionString"];      
               
string ConStringEncrypt = ConfigurationManager.AppSettings["ConStringEncrypt"];
               
if (ConStringEncrypt == "true")
                {
                    _connectionString
= DESEncrypt.Decrypt(_connectionString);
                }
               
return _connectionString;

Code

 

posted on 2009-06-15 10:07  amaoxp  阅读(442)  评论(0编辑  收藏  举报