Hi,
I need to add an encrypt code and just having problem doing it right. Can I someone help me
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
bool quit = false;
while (!quit)
{
ShowMenu();
ConsoleKeyInfo key = Console.ReadKey();
switch (key.Key)
{
case ConsoleKey.E:
Console.ReadLine();
Console.Write("Enter a String to encrypt: ");
string plaintext = Console.ReadLine();
break;
case ConsoleKey.D:
Console.ReadLine();
Console.Write("Enter a String to decrypt: ");
string plaintext = Console.ReadLine();
break;
case ConsoleKey.Q:
quit = true;
break;
default:
Console.WriteLine("Unknown command");
break;
}
}
}
private static void ShowMenu()
{
Console.WriteLine("[ E ]ncrypt");
Console.WriteLine("[ D ]ecrypt");
Console.WriteLine("[ Q ]uit");
Console.WriteLine("Please enter command: ");
Console.WriteLine();
}
}
}

Problem with adding encrypt code
Spyrrho
well your code shows no code of encrypting or decrypting the inputs. Is this what you are after
Take a look at rijndael encryption:
http://msdn2.microsoft.com/en-us/library/system.security.cryptography.rijndael.aspx