Exemple #1
0
 public static string DecryptString(string input)
 {
     try
     {
         var rijndaelKey = new RijndaelEnhanced("DGCTV", "@1B2c3D4e5F6g7H8");
         return(rijndaelKey.Decrypt(input));
     }
     catch (Exception)
     {
         return("");
     }
 }
Exemple #2
0
 public static string DecryptString(string input)
 {
     try
     {
         var rijndaelKey = new RijndaelEnhanced("DGCTV", "@1B2c3D4e5F6g7H8");
         return rijndaelKey.Decrypt(input);
     }
     catch (Exception)
     {
         return "";
     }
 }
Exemple #3
0
        public Settings()
        {
            // Init Connection object
            ConnectionStringSettingsCollection connections = WebConfigurationManager.ConnectionStrings;

            ConnectionStringDGTV = _rijndaelKey.Decrypt(connections["ConnectionStringCommon"].ToString());

            //Init Other

            LogingType = "Global Policy";

            IsLocal = Convert.ToBoolean(WebConfigurationManager.AppSettings["currentStatus"]);
        }