Exemple #1
0
        private string read404Page()
        {
            string text = File.ReadAllText("none.dat");

            text = RijndaelSimple.Decrypt(text);
            string[] keys = new string[] {
                LanguageKey.News404_1,
                LanguageKey.News404_2,
                LanguageKey.News404_3,
                LanguageKey.News404_4
            };

            text = text.Replace("{app_url}", Application.StartupPath);
            foreach (string s in keys)
            {
                text = text.Replace("{" + s + "}", LanguageResources.GetString(s));
            }
            return(text);
        }
Exemple #2
0
 public static byte[] DigestEncodedFile(string filePath)
 {
     return(DigestMessage(RijndaelSimple.Decrypt(File.ReadAllText(filePath))));
 }