private static string Encrypt(string a)
char[] temp = a.ToCharArray();
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.Length; i++)
for (int i = 0; i < a.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();
Console.WriteLine("Your encrypted message is: " + Encrypt(pt));
Console.WriteLine("Please enter your ciphertext to decrypt.");
string ct = Console.ReadLine();
Console.WriteLine("Your decrypted message is: " + Decrypt(ct));
Console.WriteLine("Please enter 1 or 2");