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 pt = Console.ReadLine();
string ept = pt.ToUpper();
Console.WriteLine("Your encrypted message is: " + Encrypt(ept));
Console.WriteLine("Please enter your ciphertext to decrypt.");
string ct = Console.ReadLine();
string dct = ct.ToUpper();
Console.WriteLine("Your decrypted message is: " + Decrypt(dct));
Console.WriteLine("Please enter 1 or 2");
Console.WriteLine("Would you like to redo this program Type q for no and anything else to contuine");
string restart = Console.ReadLine();
if(restart =="q"||restart =="Q")
Console.WriteLine("Ok bye");