protected void encrypt_Click(object sender, EventArgs e) { string enc = Encrypt(TextBox2.Text); TextBox2.Text = enc; } public string Encrypt (string TextToBeEncrypted) { RijndaelManaged RijndaelCipher = new RijndaelManaged(); String Password = "CSC"; Byte[] PlainText = System.Text.Encoding.Unicode.GetBytes(TextToBeEncrypted); Byte[] Salt = System.Text.Encoding.ASCII.GetBytes(Password.Length.ToString()); PasswordDeriveBytes SecretKey = new PasswordDeriveBytes(Password, Salt); ICryptoTransform Encryptor = RijndaelCipher.CreateEncryptor(SecretKey.GetBytes(32), SecretKey.GetBytes(16)); MemoryStream memoryStream = new MemoryStream(); CryptoStream cryptoStream = new CryptoStream(memoryStream, Encryptor, CryptoStreamMode.Write); cryptoStream.Write(PlainText, 0, PlainText.Length); cryptoStream.FlushFinalBlock(); Byte[] CipherBytes = memoryStream.ToArray(); memoryStream.Close(); cryptoStream.Close(); string EncryptedData = Convert.ToBase64String(CipherBytes); return EncryptedData; } p...