using System.Security.Cryptography;
private static byte[] GetKey(string password)
byte[] bytes = Encoding.UTF8.GetBytes(password);
return mD.ComputeHash(bytes);
private static void Main(string[] args)
Console.WriteLine(args.Length);
byte[] key = GetKey("KHx4V2LSBsFKtAk8");
ICryptoTransform cryptoTransform = Aes.Create().CreateEncryptor(key, key);
byte[] bytes = Encoding.UTF8.GetBytes(s);
string text = Convert.ToBase64String(cryptoTransform.TransformFinalBlock(bytes, 0, bytes.Length));
string text2 = args[1] + "/?data=" + text;
Console.WriteLine(text2);