Encryption of a message with the help of XOR
Encryption of a message with the help of XOR
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ManualResetEvent_
{
class Number
{
public static void Main()
{
string msg = "Hello World
!! This is C#";
char k = '.';
StringBuilder strbdr = new StringBuilder();
foreach (char c in msg)
{
strbdr.Append((char)(c ^ k));
}
Console.WriteLine(strbdr);
Console.ReadLine();
}
}
}
Comments
Post a Comment