using System;
using System.IO;
using System.Security.AccessControl;
class FileExample
{
public static void Main()
{
string FileName = "test.xml";
AddEncryption(FileName);
Console.WriteLine("Decrypt " + FileName);
RemoveEncryption(FileName);
}
public static void AddEncryption(string FileName)
{
File.Encrypt(FileName);
}
public static void RemoveEncryption(string FileName)
{
File.Decrypt(FileName);
}
}