public static void Main()
Console.WriteLine("enter yuer mesage");
string msg = Console.ReadLine();
Console.WriteLine("Enter Yuer Password");
string password = Console.ReadLine();
char[] msgArray = msg.ToCharArray();
char[] passwordArray = password.ToCharArray();
for (int i = 0; i < msg.Length; i++)
char c = (char)(msgArray[i] ^ passwordArray[j++ % passwordArray.Length]);
Console.WriteLine("Encrypted message");