示例#1
0
 public static DESEncrypt CreateInstance()
 {
     if (uniqueInstance == null)
     {
         lock (locker)
         {
             if (uniqueInstance == null)
             {
                 uniqueInstance = new DESEncrypt();
             }
         }
     }
     return uniqueInstance;
 }
示例#2
0
        private SqlHelper()
        {
            string constring = ConfigurationManager.AppSettings["sqlcon"];

            this.connectionString = DESEncrypt.CreateInstance().Decrypt(constring);
        }