Esempio n. 1
0
        public void DecryptFile(string FileName)
        {
            string FileText = File.ReadAllText(FileName, Encoding.GetEncoding("Windows-1251"));

            File.WriteAllText(FileName, StringCipher.Decrypt(FileText, "SuperStudent"), Encoding.GetEncoding("Windows-1251"));
        }
Esempio n. 2
0
        public string GetJSONString(string FileName)
        {
            string JSONString = File.ReadAllText(FileName, Encoding.GetEncoding("Windows-1251"));

            return(StringCipher.Decrypt(JSONString, "SuperStudent"));
        }