private static string Encrypt(string s)
char[] temp = s.ToCharArray();
for (int i = 0; i < s.Length; i++)
string cipher = new string (temp);
private static string Decrypt(string s)
char[] temp = s.ToCharArray();
for (int i = 0; i < s.Length; i++)
string plain = new string (temp);
public static void Main()
Console.WriteLine("Press 1 to Encrypt a message and 2 to Decrypt a message");
byte choice = byte.Parse(Console.ReadLine());
Console.WriteLine("Please enter your plaintext to encrypt.");
string plain = Console.ReadLine().ToUpper();
Console.WriteLine("Your encrypted message is: " + Encrypt(plain));
Console.WriteLine("Please enter your ciphertext to decrypt.");
string pl = Console.ReadLine().ToUpper();
Console.WriteLine("Your decrypted message is: " + Decrypt(pl));
Console.WriteLine("Please enter 1 or 2");
Console.WriteLine("Press q to quit or anything else to continue.");
string c = Console.ReadLine();