摘要:
//这个就是解密ConnString,用解密后的串连接数据库就行啦这里需要引入一个加密的dllDesEncrypt.dlldbHelper.ConnectionString = DecryptPassword(System.Configuration.ConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString);private static string DecryptPassword(string conn){int pos= conn.IndexOf("Password=") 阅读全文