public static string DecryptString(string input) { try { var rijndaelKey = new RijndaelEnhanced("DGCTV", "@1B2c3D4e5F6g7H8"); return(rijndaelKey.Decrypt(input)); } catch (Exception) { return(""); } }
public static string DecryptString(string input) { try { var rijndaelKey = new RijndaelEnhanced("DGCTV", "@1B2c3D4e5F6g7H8"); return rijndaelKey.Decrypt(input); } catch (Exception) { return ""; } }
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"]); }