static public string Encrypt(string a)
char[] temp = a.ToCharArray();
for (int i = 0; i < a.Length; i++)
string b = new string(temp);
static public string Decrypt(string a)
char[] temp = a.ToCharArray();
for (int i = 0; i < a.Length; i++)
string b = new string(temp);
public static void Main()
while (restart != "Q" && restart != "q")
Console.WriteLine("Would you like to encrypt or decrypt. Please enter D or E");
string choice = Console.ReadLine();
if (choice == "E" || choice == "e")
Console.WriteLine("Please enter what you wish to encrypt");
string a = Console.ReadLine();
Console.WriteLine(Encrypt(a));
if (choice == "D" || choice == "d")
Console.WriteLine("Please enter what you wish to decrypt");
string a = Console.ReadLine();
Console.WriteLine(Decrypt(a));
Console.WriteLine("Would you like to run again? Type anything to continue. Type Q to quit.");
restart = Console.ReadLine();